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

ASF GitHub Bot commented on GROOVY-11229:
-----------------------------------------

daniellansun commented on PR #1994:
URL: https://github.com/apache/groovy/pull/1994#issuecomment-1826386161

   I am looking for better AST for pattern matching for both `instanceof` and 
`switch`.
   The PR is just for `instanceof`, but I try to make flexible to change easily 
for other pattern matching and destructure.
   
   The reason of adding pattern variable to `ClassExpression` is making the 
change smoothly. As you known, all visitors process `ClassExpression` well, but 
do not know new expressions, we could refactor later, let's make it work at the 
beginning.
   




> 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