The Source for Java Technology Collaboration
User: Password:



Start New Message Post a Reply

Subject:  Better syntax maybe
Date:  2006-08-28 07:04:51
From:  pcwheels


I would like to reference Methods in Java. But isn't there a nicer way to do this? One that is closer to the syntax we already know. For example:

Method anIstanceOfMethod = someObject#someMethod();

anIstanceOfMethod.execute();

Generics could then be used to specify the return and parameter types of the method.

 Feed java.net RSS Feeds