[jira] [Created] (JEXL-226) add ?? operator support

2017-06-06 Thread Min Wei (JIRA)
Min Wei created JEXL-226:


 Summary: 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
 Fix For: Later


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.3.15#6346)


[jira] [Commented] (JEXL-226) add ?? operator support

2017-06-26 Thread Min Wei (JIRA)

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

Min Wei commented on JEXL-226:
--

I have some internal use cases to prefer the C# like syntax. 

On thinking of it, it might be a good idea to be able to redefine the operators 
in general for a scripting language like JEXL. Because it's a DSL after all. 

> 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)


[jira] [Commented] (JEXL-226) add ?? operator support

2017-06-26 Thread Min Wei (JIRA)

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

Min Wei commented on JEXL-226:
--

I know the Java heritage, though ?? is becoming a more pattern (e.g. Swift 
supports it too). 

Note that I am still experimenting with JEXL. And kind of curious about the 
main use cases by other people. I know it's originally planned to support SCXML 

Given JEXL is already departing away from Java (e.g. its lambda etc.), it might 
make sense to make it more "LISP like" expression language that supports 
defining new operators. 

Anyway, just a suggestion. Please feel free to close out this jira.  

> 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)


[jira] [Commented] (JEXL-226) add ?? operator support

2017-06-28 Thread Min Wei (JIRA)

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

Min Wei commented on JEXL-226:
--

This is great, Henri

> 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)