[979] in java-interest
Re: overloading of operators
daemon@ATHENA.MIT.EDU (John D. Mitchell)
Wed Aug 16 03:16:45 1995
Date: Tue, 15 Aug 1995 20:52:31 -0700
From: "John D. Mitchell" <johnm@CSUA.Berkeley.EDU>
To: "Robert O'Callahan" <roc+@cs.cmu.edu>
CC: java-interest@java.sun.com
In-reply-to: <199508151307.GAA25576@java>
"Robert O'Callahan" writes:
[...]
> I also vote for using :: or some other token as the package seperator; if
> you're going to use C's damaged operator hierarchy for the sake of
> familiarity, you might as well do it right and fix the parsing problems
> too. Do it now while there's still time! If you make Java really easy
> to parse, everybody wins.
Yes! The 'overloading' of the dot ('.') for use in Package.thing and
Class.member is currently ambiguous (syntactically). Changing the first
form to Package::thing will clean things up nicely and it's one less thing
to confuse the C++ folks on.
Take care,
John
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com