[ https://issues.apache.org/jira/browse/JEXL-372 ]
Dmitri Blinov deleted comment on JEXL-372:
------------------------------------
was (Author: dmitri_blinov):
Once you mentioned complexity of overload checks for self\{Add,Subtract,..} I
recalled that when I tackeled that problem myself, I added the default
implementations for those methods to base JexlArithmetic
{code:java}
public Object selfAdd(Object left, Object right) {
return add(left, right);
}
{code}
and adjusted Operators to call them directly if there were no overloads
detected.
{code}
switch (operator) {
case SELF_ADD:
return arithmetic.selfAdd(arg1, arg2);
{code}
It shaves off some cycles on preventing always using reflection
> 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)