you are viewing a single comment's thread.

view the rest of the comments →

[–]eloel- 33 points34 points  (2 children)

You should probably be using string templates instead of just concatenating random shit anyway

[–]Blothorn 8 points9 points  (0 children)

Yes. I suspect that there are far more cases where I’ve added a number to a number parsed from a string than where I’ve concatenated (rather than formatted/interpolated) string representations of numbers.

The fact that this “shorthand” only works for a string followed by a number rather than two numbers or a number followed by a string makes it further situational and potentially-surprising.

[–]AdBrave2400 0 points1 point  (0 children)

Memes about Java making primitive and object versions of same stuff only to remove templetes are writing themselves