Why Java Doesn't Need Operator Overloading (and Very Few Languages Do, Really)

Ellery Newcomer ellery-newcomer at utulsa.edu
Tue Apr 14 16:12:36 PDT 2009


Paul D. Anderson wrote:
> Sounds like someone needs a strong dose of D!!
> 
> http://java.dzone.com/articles/why-java-doesnt-need-operator
> 
> The comments bounce between "operator overloading is always bad because you can do idiotic things with it" and "operator overloading is essential because sometimes you really need it".
> 
> How about a language where operator overloading is available for the cases where you do really need it, but isn't available in general?
> 
> Hmmm...
> 
> Paul

How about a language where expression overloading is available, etc?



More information about the Digitalmars-d mailing list