2 ms·
> Objecting to using + or += overloading on strings in Java seems to me to be cutting off your nose to spite your face. Nowhere did I say you shouldn't use the
by michaelcampbell 16y ago
> Objecting to using + or += overloading on strings in Java seems to me to be cutting off your nose to spite your face.
Nowhere did I say you shouldn't use them; I said your assertion of "should" was subjective at best and "clever" in a bad way, since you're only using it for the side effect of auto-boxing the int INTO a string; not its intended purpose of concatenating strings.
> In Python would you object to nesting "s and 's because it feels hackish? In Lisp would you avoid Macros because they are hackish? In Perl would you avoid regexs because they are hackish?
No, because none of them are.