Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The feature has been in Java for a long time. This is just nice syntax for anonymous inner classes.


Though the current implementation does use anonymous inner classes under the covers the intent was to specify them such that other implementations that are more efficient could be used. The likely final implementation will be simple methods invoked with invokedynamic that don't need a separate class and instance per call site.


The feature has not been in Java for a long time, because the feature is the nice syntax.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: