[
https://issues.apache.org/jira/browse/JEXL-373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17553423#comment-17553423
]
Henri Biestro commented on JEXL-373:
------------------------------------
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 prefix/postfix increment/decrement operators
> ------------------------------------------------------------
>
> Key: JEXL-373
> URL: https://issues.apache.org/jira/browse/JEXL-373
> Project: Commons JEXL
> Issue Type: Improvement
> Affects Versions: 3.2.1
> Reporter: Henri Biestro
> Assignee: Henri Biestro
> Priority: Major
> Fix For: 3.3
>
>
> The prefix/postfix increment/decrement operators as in:
> {code}lhs++; ++lhs; lhs--; --lhs;{code}
> lhs being a left-hand-side value, a value that can be assigned.
--
This message was sent by Atlassian Jira
(v8.20.7#820007)