More concise syntax should be feasible too(statement in parentheses), e.g.
``` def a = 6 def r = ( switch (a) { case 6: yield 'a' default: yield 'b' } ) assert 'a' == r ``` Cheers, Daniel.Sun ----- Apache Groovy committer & PMC member Blog: http://blog.sunlan.me Twitter: @daniel_sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html