|
|
|
|
|
by mbell
4512 days ago
|
|
It's still a closure, just a closure with immutable capture, just like Python. Also like Python, you can get around it by boxing the variable you would like to modify (or using nonlocal in Python 3). IMO the lack of exception transparency is going to be more of an issue with Java's lambdas. |
|
The lack of checked exception transparency is for me something that goes in the right direction. The hidden message is 'Use checked exception only for IOs and please don't create your own exceptions, use already existing ones !'