[924] in java-interest

home help back first fref pref prev next nref lref last post

Re: overloading of operators

daemon@ATHENA.MIT.EDU (Terence John Parr)
Tue Aug 15 16:59:32 1995

Date: Tue, 15 Aug 1995 10:45:23 -0700
From: Terence John Parr <parrt@parr-research.com>
To: mlorton@eshop.com, parrt@parr-research.com
Cc: java-interest@java.sun.com

Howdy,

> When you are adding number-like class (Matrices, Tensors, Quaterions),
> nothing beats Op-Ov for readability.

I agree that nothing beats

	Matrix a=..., b=..., c;
	c = a + b;

for readability.  However, I still feel that it would allow too many
bad things...the price isn't worth it.

> What we want to prevent is the
> promiscuous abuse of Op-Ov for whatever might pop into the novice
> programmer's so-called brain.

True...only way to prevent is to refuse ;)

> I notice no-one is complaining about the hard-wired Op-Ov in the
> String class ...

Absolutely, for two reasons:

1	It's predefined in the language, not programmer dependent.
2	It's a fairly well known and obvious construct.

Terence
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post