POC javac can compile invokedynamic
Jochen Theodorou
blackdrag at gmx.org
Wed Oct 1 10:06:04 PDT 2008
Frank Wierzbicki schrieb:
> On Sat, Sep 13, 2008 at 12:49 AM, Charles Oliver Nutter
> <charles.nutter at sun.com> wrote:
>> // MyCode.java
>> import static DynamicUtil.Dynamic
>> public class MyCode {
>> public void doSomething() {
>> String a = "foo";
>> Dynamic(a).someOtherMethod();
>> }
>> }
> That looks very convenient indeed.
>
> This is only barely on-topic, but have you guys seen the proposed C#
> syntax for this sort of thing?
>
> http://blogs.msdn.com/charlie/archive/2008/01/25/future-focus.aspx
this method or cast based solution is very convenient, because you
actually don't need to change anything in the language... especially no
new keywords!
bye blackdrag
--
Jochen "blackdrag" Theodorou
The Groovy Project Tech Lead (http://groovy.codehaus.org)
http://blackdragsview.blogspot.com/
http://www.g2one.com/
More information about the mlvm-dev
mailing list