You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by GitBox <gi...@apache.org> on 2021/09/17 17:27:40 UTC
[GitHub] [groovy] eric-milles opened a new pull request #1621: SC: skip `ScriptBytecodeAdapter` for `!in` via `isNotCase` extension methods
eric-milles opened a new pull request #1621:
URL: https://github.com/apache/groovy/pull/1621
Do these make sense to add as extension methods? I would not expect to see these used directly in code, but they could be, I supppose, if user did not want to prefix expression with `!`. Current STC checks for `"isNotCase"` and finds nothing so it falls back to `ScriptBytecodeAdapter`'s [implementation](https://github.com/apache/groovy/blob/master/src/main/java/org/codehaus/groovy/runtime/ScriptBytecodeAdapter.java#L714).
I chose to add `Closure`'s as an extension method rather than a new direct method. Here is its `isCase`: https://github.com/apache/groovy/blob/master/src/main/java/groovy/lang/Closure.java#L398
https://issues.apache.org/jira/browse/GROOVY-10239
--
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: notifications-unsubscribe@groovy.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [groovy] eric-milles merged pull request #1621: SC: skip `ScriptBytecodeAdapter` for `!in` via `isNotCase` extension methods
Posted by GitBox <gi...@apache.org>.
eric-milles merged pull request #1621:
URL: https://github.com/apache/groovy/pull/1621
--
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: notifications-unsubscribe@groovy.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org