Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
Description
Right now several operators (e.g. ! && || =~ ==~)¹ cannot be intercepted. Making all operators interceptable would improve language consistency and open up new possibilities for API/DSL designers. For an example of how this feature could be used, see http://www.nabble.com/Operator-Interception-tf3424475.html#a9544816
¹ Also < <= => > <=> cannot be intercepted. Intercepting compareTo() is not enough, because it doesn't tell which operator was used.
Attachments
Issue Links
- is duplicated by
-
GROOVY-1888 Make all operators overridable
- Open
- is related to
-
GROOVY-2756 create new user overwritable operator methods for <,==,>,<=,=>,<==>
- Open