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 2017/06/26 13:35:00 UTC
[jira] [Comment Edited] (JEXL-226) add ?? operator support
[ https://issues.apache.org/jira/browse/JEXL-226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16063088#comment-16063088 ]
Henri Biestro edited comment on JEXL-226 at 6/26/17 1:34 PM:
-------------------------------------------------------------
I'm very much against having 2 syntaxes for the same operator.
What is the benefit of not using the 'elvis' - ?: - operator ?
was (Author: henrib):
I'm very much against having 2 syntaxes for the same operator.
What is the benefit of not using the 'elvis' operator ?
> 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)