You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2021/11/24 13:35:00 UTC

[jira] [Commented] (GROOVY-10383) SC: !in compiled to ScriptBytecodeAdapter#isNotCase

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

Eric Milles commented on GROOVY-10383:
--------------------------------------

See also 10239 and https://github.com/apache/groovy/pull/1621

> SC: !in compiled to ScriptBytecodeAdapter#isNotCase
> ---------------------------------------------------
>
>                 Key: GROOVY-10383
>                 URL: https://issues.apache.org/jira/browse/GROOVY-10383
>             Project: Groovy
>          Issue Type: Improvement
>          Components: Static compilation
>            Reporter: Eric Milles
>            Priority: Major
>
> Consider the following:
> {code:groovy}
> @groovy.transform.CompileStatic
> boolean test(a,b) {
>   a !in b
> }
> {code}
> "a !in b" requires similar compiler optimizations as "a in b" while still maintaining null safety (GROOVY-6137) and single evaluation of its operands (GROOVY-7473).



--
This message was sent by Atlassian Jira
(v8.20.1#820001)