[662] in java-interest
Re: Categories in Java?
daemon@ATHENA.MIT.EDU (Michael Lorton)
Wed Jul 12 13:41:37 1995
Date: Wed, 12 Jul 1995 09:15:52 -0700
From: Michael Lorton <mlorton@eshop.com>
To: andrewr@crt.com
Cc: java.sun.com!java-interest@inet1.crt.com
In-Reply-To: Andrew Rolfe's message of Wed, 12 Jul 95 07:25:17 -0500 <9507121225.AA03132@bandits>
I for one agree with Mike Fleming that Obj-C like Categories would
be an excellent addition to the Java language. They are an
extremely useful tool; as much or more than Interfaces.
And Mike, I wouldn't give-in so easily to the security concern. I
have a feeling categories could be a security issue. However, since
this is a new language, I don't see why we couldn't allow class
designers to declare if a class "allows" categorization or not.
Or if a category-added method were restricted to the public interface.
Obviously, there would you be some things you couldn't do, but that is
the whole point of privacy, isn't it, to make some things impossible?
M.
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com