[ 
https://issues.apache.org/jira/browse/GROOVY-9272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17348926#comment-17348926
 ] 

Daniel Sun commented on GROOVY-9272:
------------------------------------

{quote}
It sounds like there was a prototype for the ClosureExpression option. Does 
that still exist? That first option does still have the benefit of simplicity. 
It may give Groovy most of what the Java switch expression provides.
{quote}

Yep. We already have a prototype for the ClosureExpression option in 2019/11/5. 
The implementation still exists but need a little polishment, e.g. support 
{{yield}}, abandon support for mixed {{:}} and {{->}}

> Support switch expression
> -------------------------
>
>                 Key: GROOVY-9272
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9272
>             Project: Groovy
>          Issue Type: New Feature
>            Reporter: Daniel Sun
>            Priority: Major
>
> See JEP 325( [https://openjdk.java.net/jeps/325] )
> [https://blog.codefx.org/java/switch-expressions/]
> [https://dzone.com/articles/jdk-12-switch-statementsexpressions-in-action]
> [https://blog.idrsolutions.com/2019/03/java-12-switch-expressions-explained-in-5-minutes/]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to