Why Java Doesn't Need Operator Overloading (and Very Few Languages Do, Really)
Rainer Deyke
rainerd at eldwood.com
Tue Apr 14 17:29:33 PDT 2009
Walter Bright wrote:
> My problem with operator overloading stemmed from C++'s endorsement of
> using >> and << for stream operations.
I don't see how "stream << value" is any worse than "shift_left(stream,
value)".
Most operators are just functions with special syntax. No more, no
less. The issues with operator overloading are exactly the same as the
issues with function overloading.
--
Rainer Deyke - rainerd at eldwood.com
More information about the Digitalmars-d
mailing list