commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dmitri Blinov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JEXL-226) add ?? operator support
Date Wed, 28 Jun 2017 08:14:00 GMT

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

Dmitri Blinov commented on JEXL-226:
------------------------------------

I'm unable to use this operator in scripts. The following construct

{code}
x??true
{code}

throws org.apache.commons.jexl3.JexlException$Parsing: evalScript@1:3 parsing error in '?'

> add ?? operator support 
> ------------------------
>
>                 Key: JEXL-226
>                 URL: https://issues.apache.org/jira/browse/JEXL-226
>             Project: Commons JEXL
>          Issue Type: New Feature
>    Affects Versions: Later
>            Reporter: Min Wei
>            Assignee: Henri Biestro
>              Labels: features
>             Fix For: 3.2
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Jexl already supports null-coalescing semantics with the operator "?:". So it should
be a simple matter to extend it with a different syntax.
> https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/operators/null-conditional-operator
> https://github.com/apache/commons-jexl/pull/4



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message