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

This feature, which Delphi has, can be problematic - if you're assigning a method to a method reference variable, it's not always clear if you intend to assign the method itself, or the return value of the method (which may itself be a method reference).

Of course, Java doesn't have method reference types. But it's an ambiguity worth bearing in mind.



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

Search: