Hacker News new | ask | show | jobs
by ashconnor 5347 days ago
Isn't that restricted by the JVM?
1 comments

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.