[920] in java-interest
Re: overloading of operators
daemon@ATHENA.MIT.EDU (Michael Lorton)
Tue Aug 15 16:18:24 1995
Date: Tue, 15 Aug 1995 09:49:20 -0700
From: Michael Lorton <mlorton@eshop.com>
To: parrt@parr-research.com
Cc: java-interest@java.sun.com
In-Reply-To: Terence John Parr's message of Mon, 14 Aug 1995 15:07:33 -0700 <199508142207.PAA02545@lonewolf.parr-research.com>
FWIW (For what it's worth) I would *favor* operator overloading, with
severe restrictions (it can only take Objects, it can only return
Objects, &c) if that helps.
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 ...
M.
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com