Closure folding in Maia
Thanks for the release of the Maia EAP, I've been looking forward to it for
a long time.
I just tried to play with the closure folding and initially couldn't figure
it out. It seems that if closure folding isn't set to folded by default,
there's no way to fold an already-expanded block of code? Is that intentional?
请先登录再写评论。
Yes, unfortunately closure folding intersects with the good old
anonymous class folding, they just cannot live together. So instead of
having two options (whether to have closure folding and to fold it by
default) we decided that it would be simpler to have just one.