[934] in java-interest
Re: overloading of operators
daemon@ATHENA.MIT.EDU (Paul Ambrose)
Tue Aug 15 18:24:51 1995
From: "Paul Ambrose" <pambrose@weblogic.com>
To: java-interest@java.sun.com
Date: Tue, 15 Aug 1995 11:43:38 +0000
The saying goes: guns don't kill people - people kill people.
Overloaded operators are great when used properly.
They do not *have* to lead to mind bending semantics
and inexplicable side-effects.
It takes a C-trained C++ programmer to abuse and confuse their use.
I for one would like to be *entrusted* with the ability to
"do the right thing" WRT overloaded operators in my Java classes.
Paul
> When you are adding number-like class (Matrices, Tensors, Quaterions),
> nothing beats Op-Ov for readability. What we want to prevent is the
> promiscuous abuse of Op-Ov for whatever might pop into the novice
> programmer's so-called brain.
>
> I notice no-one is complaining about the hard-wired Op-Ov in the
> String class ...
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com