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.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to