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

Eric Milles commented on GROOVY-11229:
--------------------------------------

Pattern matching for record and switch come as separate JEPs:
https://openjdk.java.net/jeps/440
https://openjdk.org/jeps/441

Is there a simple path that just adds the {{instanceof}} variable?  And in the 
case of Groovy, is there a need for the extra variable in the presence of 
flow-typing (under STC)?  That is, is this ticket more of a java compatibility 
play?

> Support pattern matching for `instanceof`
> -----------------------------------------
>
>                 Key: GROOVY-11229
>                 URL: https://issues.apache.org/jira/browse/GROOVY-11229
>             Project: Groovy
>          Issue Type: New Feature
>            Reporter: Daniel Sun
>            Priority: Major
>
> See also https://openjdk.org/jeps/394



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to