The Source for Java Technology Collaboration
User: Password:



Start New Message Post a Reply

Subject:  allow inner classes to access non-final local variables
Date:  2006-08-31 03:57:09
From:  mstevens


I want closures, but from what I've read of the proposal it doesn't seem very java-ish.

I think something that would keep java java-ish would be to allow anonymous inner classes to access non-final local variables - this my biggest problem with using anonymous inner classes to simulate closures.

They'd still be extremely verbose, but you can't have everything :)

 Feed java.net RSS Feeds