I'd be curious whether a much simpler implementation was possible - after all, the if and switch statements are already treated as pseudo expressions if they are the last statement in a method for instance.
On Wed, Sep 27, 2017 at 3:57 PM, Daniel Sun <realblue...@hotmail.com> wrote: > Hi Bahman, > > Translating to a clsoure call is just one way to implement, the > performance will be impacted a bit. We can change the implementation if we > find performance issue ;-) > As to other statements, `switch` will be the next lucky dog if most > of developers like it. > > Cheers, > Daniel.Sun > > > > -- > Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html >