[971] in java-interest
Re: operator overloading
daemon@ATHENA.MIT.EDU (G. David Kuhlman)
Wed Aug 16 00:23:30 1995
From: dkuhlman@netcom.com (G. David Kuhlman)
To: java-interest@java.sun.com
Date: Tue, 15 Aug 1995 18:08:32 -0700 (PDT)
I vote NO on operator overloading.
I vote against a feature that helps us write code that is
mysterious and difficult to figure out. Operator overloading is a
feature that is best put to use by a programmer who wants to
impress friends with obfuscated code. We have C++ when we want to
do that.
I also wonder if operator overloading could be (mis-)used to by-pass
or trick security checking features of Java. Could a file (compilation
unit) in which an operator is used and the file in which it is
defined be sent separately and recombined on the machine on which
they are to be run in a way that causes mischief. Actually, why
can't normal methods be mis-used in the same way? Actually, forget
that I asked. I don't believe it's possible to make systems safe
from Java, anyway.
--
Dave Kuhlman
Reify, Redwood City, CA
Internet: dkuhlman@netcom.com
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com