groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Sun <realblue...@hotmail.com>
Subject Re: About if statement in the right hand of assignment statement
Date Wed, 27 Sep 2017 13:58:59 GMT
Hi David,

      If we treat if/switch statements as real expression, we may have some
ugly code like the following, so I just plan to support declaration and
assignment.

```
   if( if (...) { ... } else if (...) { ... } else if (...) {...} else {...}
) {
      ...
   } else if ( if (...) { ... } else if (...) { ... }  ) {
      ...
   }
```

Cheers,
Daniel.Sun



--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Mime
View raw message