Slashdot Mirror


Overloading and Smooth Operators

An anonymous reader writes "IBM DeveloperWorks has an interesting article on operator ad hoc polymorphism (operator overloading for the uninitiated). With the increase in Java popularity and their banning of operator overloading (among other things) the author decides to show some of the great benefits that operator overloading can bring, as long as it is served with a 'healthy dose of caution.'"

2 of 75 comments (clear)

  1. Re:Useful? Doubtful. by keesh · · Score: 1, Flamebait

    Sure. Because Complex x = (a + b) * c; is so much less readable than Complex x = (a.add(b)).assign(c); .

    Java disallowing C++-style constants, operator overloading, templates and everything else useful just adds to the theory that Java is C++ for stupid people.

  2. Re:Useful? Doubtful. by drxenos · · Score: 0, Flamebait

    Which is why I've always called Java "C++ for VB programmers."

    --


    Anonymous Cowards suck.