News for hackers. Stuff that matters.
Re:Everything about Java 8 by gjulianm on Wednesday March 27, 2013 @12:07PM (#5450216)
Absolutely agree with you. I haven't seen yet a real reason to avoid including operator overloading in any language.
Re:Everything about Java 8 by twic on Wednesday March 27, 2013 @01:25PM (#5450714)
There is exactly one such reason: programmers. Python programmers were given operator overloading, and did a good job with it. C++ and Scala programmers were given operator overloading, and did a bad job with it (eg << in C++'s streams, ^ in Scala's specs2).

I have never heard a convincing theory of why some language communities were careful in their use of operators, whilst others went overboard. In the absence of such a theory, it's a risky feature to add.

Re:Everything about Java 8 by stelonix on Wednesday March 27, 2013 @01:43PM (#5450857)
Well, it's time to disallow functions, since someone can misuse their names. And exceptions, since someone might use it as goto. Might as well get rid of non-primitive types, there might be a very bad person willing to name a class with a completely meaningless name.