[ https://issues.apache.org/jira/browse/JEXL-372 ]
Henri Biestro deleted comment on JEXL-372:
------------------------------------
was (Author: henrib):
The JS like behaviour, I'll commit that momentarily. Thanks for the hint.
Whether overloaded selfAdd/selfSubtract should be automagically used (or
add/subtract for that matter) is an interesting question. There are
counter-example for structures that do support selfAdd()/add() (any collection
for instance) where increment() as add(+1) won't make sense, so it can't be a
general rule.
I also considered the added complexity for properly solving the different cases
(find/solve add or selfAdd overload, etc) when it only takes one Java overload
- probably a one liner on top of the other overloaded methods- if you need it
feels almost like over-engineering (so to speak).
> Add support for 'standard' for loop
> -----------------------------------
>
> Key: JEXL-372
> URL: https://issues.apache.org/jira/browse/JEXL-372
> Project: Commons JEXL
> Issue Type: Improvement
> Affects Versions: 3.2.1
> Reporter: Henri Biestro
> Assignee: Henri Biestro
> Priority: Major
> Fix For: 3.3
>
>
> It would be nice to allow the C/Javascript/Java for loop:
> for(init-expression; predicate-expression; step-expression) body
> This calls for the prefix/postfix increment/decrement operators.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)