groovy-dev mailing list archives

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

      I have been thinking about support some syntax like `def x = if (...)
{ ... } else if (...) { ... } else { ... }`, which will be translated to
`def x = { if (...) { ... } else if (...) { ... } else { ... } }()`

      Any thoughts?

Cheers,
Daniel.Sun



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

Mime
View raw message