commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Biestro (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (JEXL-176) Synonym operator name 'in' for operator =~
Date Fri, 21 Aug 2015 13:29:45 GMT

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

Henri Biestro edited comment on JEXL-176 at 8/21/15 1:29 PM:
-------------------------------------------------------------

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


was (Author: henrib):
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)

Mime
View raw message