POC javac can compile invokedynamic

Frank Wierzbicki fwierzbicki at gmail.com
Wed Oct 1 09:45:04 PDT 2008


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

-Frank



More information about the mlvm-dev mailing list