News for hackers. Stuff that matters.
Re:In Java 3 = 12 by cakoose on Wednesday November 15, 2017 @03:15AM (#15702236)
> This is possible exactly because Java is statically-typed.

Are you saying that Python can't make "a"+1 become "a1" because it lacks static typing? That's not true. If they wanted to, they could have added an overload for the string+integer case.

> Java might be able to yield the same kind of result as Python if it had operator overloading.

Not necessary. They would have just had to omit the built-in overload for string+integer (and perhaps also for string+object, given the newish auto-boxing feature).

There are no comments on this comment yet.