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/27 22:41:00 UTC
[jira] [Assigned] (GROOVY-10383) SC: !in compiled to ScriptBytecodeAdapter#isNotCase
[ https://issues.apache.org/jira/browse/GROOVY-10383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Eric Milles reassigned GROOVY-10383:
------------------------------------
Assignee: Eric Milles
> 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
> Assignee: 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)