[ https://issues.apache.org/jira/browse/JEXL-226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16063883#comment-16063883 ]
Henri Biestro commented on JEXL-226: ------------------------------------ JEXL stands for Java Expression Language though :-) Not a fan of adding a C# syntax for an operator that already exists; I'd suggest regexp/replace ?? with ?: if this is a must in your case. For operators, at least the actual operations behind the syntax, most of the behaviors (if not all) can be customized through a user-defined JexlArithmetic and overriding/overloading the corresponding methods. (see http://commons.apache.org/proper/commons-jexl/apidocs/org/apache/commons/jexl3/JexlOperator.html ) > 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 > Labels: features > Fix For: Later > > 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)