groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul King <pa...@asert.com.au>
Subject Re: About if statement in the right hand of assignment statement
Date Wed, 27 Sep 2017 07:07:07 GMT
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 <realbluesun@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
>

Mime
View raw message