commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Biestro (JIRA)" <>
Subject [jira] [Created] (JEXL-275) Allow safe navigation as option
Date Mon, 17 Sep 2018 14:50:00 GMT
Henri Biestro created JEXL-275:

             Summary: Allow safe navigation as option
                 Key: JEXL-275
             Project: Commons JEXL
          Issue Type: Improvement
    Affects Versions: 3.1
            Reporter: Henri Biestro
            Assignee: Henri Biestro
             Fix For: 3.2

The 'safe navigation' operator (?.) - allowing a null property to stop and return null in
a navigation expression - has been introduced. However, in many occasions, being able to let
the '.' and '[...]' operators behave 'safely' without reverting to the 'lenient' mode  would
be very convenient.
Moreover, it seems 3.1 already allow 'safe' / silent navigation when calling methods / functions;
fixing this behaviour will break existing scripts. Explicitly introducing this 'safe' behaviour
would mitigate the (3.2) migration cost greatly.
Builder option to set the flag, inject checking the flag when node.isSafeLhs(...) is used.

This message was sent by Atlassian JIRA

View raw message