I have heard that nested classes have closurelike behavior. This is correct?
2
One might say yes in some situations, but not exactly, they are used to replace closures. It is a more exposed mechanism and a little more flexible. It can be used for other things. As now Java has closure it will tend to be less used in new Apis (at least for that). But it’s still useful. If so, I’ll try a response later.
One might say yes in some situations, but not exactly, they are used to replace closures. It is a more exposed mechanism and a little more flexible. It can be used for other things. As now Java has closure it will tend to be less used in new Apis (at least for that). But it’s still useful. If so, I’ll try a response later.
– Maniero
@Bigown Would be very nice, thank you!
– user53564
Have an example?
– Maniero