Here is some code:
String s1 = "Hello";
String s2 = "World!";
String s3 = s1 + " " + s2;
If operator overloading is "so bad" that the developers shouldn't use it, why do you???
The above code should've been (which is also valid):
...
String s3 = s1.concat(" ").concat(s2);
WTF???
String s1 = "Hello";
String s2 = "World!";
String s3 = s1 + " " + s2;
If operator overloading is "so bad" that the developers shouldn't use it, why do you???
The above code should've been (which is also valid):
...
String s3 = s1.concat(" ").concat(s2);
WTF???
No comments:
Post a Comment