You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Henri Biestro (JIRA)" <ji...@apache.org> on 2015/08/21 15:29:45 UTC

[jira] [Commented] (JEXL-176) Synonym operator name 'in' for operator =~

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

Henri Biestro commented on JEXL-176:
------------------------------------

The 'in' operator is an (unfortunate) compatibility requirement (that {c,sh}ould be dropped).
If anything, I'd remove it from the language syntax since 'in' as a keyword is just inconvenient too often.

> Synonym operator name 'in' for operator =~
> ------------------------------------------
>
>                 Key: JEXL-176
>                 URL: https://issues.apache.org/jira/browse/JEXL-176
>             Project: Commons JEXL
>          Issue Type: Improvement
>            Reporter: Dmitri Blinov
>            Priority: Minor
>             Fix For: 3.0
>
>
> For the purpose of JEXL being more readable allow to use 'in' operator for =~
> comparisons 
> {code}
> var a = 1; if (a in [1,2,3]) ...
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)