[
https://issues.apache.org/jira/browse/GROOVY-9848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17244570#comment-17244570
]
Keegan Witt commented on GROOVY-9848:
-------------------------------------
[~paulk] A better example of the oddity of {{isCase()}} would be Boolean
values. This makes it clear it's not exactly the same as operating on a
keyset. For me (on Groovy 3.0.6), that first assert of yours doesn't pass, but
these do.
{code:java}
def map = [a:false, b:true]
assert 'a' !in map
assert 'b' !in map
{code}
[~emilles] Yea, I was thinking making it shorthand for {{containsKey()}} would
be more natural behavior.
> Allow membership operator to work on maps
> -----------------------------------------
>
> Key: GROOVY-9848
> URL: https://issues.apache.org/jira/browse/GROOVY-9848
> Project: Groovy
> Issue Type: Improvement
> Reporter: Keegan Witt
> Priority: Major
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)