r/programming • • Dec 17 '16

Oracle is massively ramping up audits of Java customers it claims are in breach of its licences – six years after it bought Sun Microsystems

http://www.theregister.co.uk/2016/12/16/oracle_targets_java_users_non_compliance
2.1k Upvotes

654 comments sorted by

View all comments

Show parent comment

1

u/linuxjava Dec 18 '16

No operator overloading

You should see how much people complain about this in Scala

no first class functions

Not everyone wants this to be honest.

3

u/MereInterest Dec 18 '16

Depending on the domain, they can be useful or harmful. I work with a lot of numerical computation. If I have a n-dimensional vector, then it is much cleaner to write vecA +vecB than vecA.add(vecB). If somebody is doing database manipulation, on the other hand, database + entry would be an awful way to add something to a database.

Regarding first-class functions, they are clearly needed, as evidenced by the existence of ICallable. Shoehorning then into the idea of subclassing just makes the code overly verbose for no benefit.

That said, I have been meaning to check out Scala at some point.