Hacker News new | ask | show | jobs
by rbanffy 5347 days ago
Operator overload would be nice.

But I don't think declaring variables whose type can be inferred from the right side of the attribution, semicolons or parentheses for parameterless methods are the biggest problems with Java.

1 comments

Isn't that restricted by the JVM?
It's syntax. You could simply define a rule that the compiler, when facing objects that do not natively (as in vanilla Java) support operator X would have the .operatorX method used instead.

The JVM would never know.