logo       

RE: Return from the Closure: msg#00090

lang.groovy.user

Subject: RE: Return from the Closure

Hello,

>I find when to be return from the Closure, it actually break the loop,
>and can't return from the method. I think this not like usual habit,
>please provide the opinion

Well, currently, we don't return from the method. We just return from the
closure.
There are discussions on that topic on the JSR, and we will certainly implement
the desired behaviour. But for the moment, it's not the case.

--
Guillaume Laforge
http://glaforge.free.fr/weblog
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise