You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Dmitri Blinov (JIRA)" <ji...@apache.org> on 2018/01/25 15:26:00 UTC

[jira] [Created] (JEXL-252) Allow for interpolated strings to be used in property access operators

Dmitri Blinov created JEXL-252:
----------------------------------

             Summary: Allow for interpolated strings to be used in property access operators
                 Key: JEXL-252
                 URL: https://issues.apache.org/jira/browse/JEXL-252
             Project: Commons JEXL
          Issue Type: New Feature
    Affects Versions: 3.1
            Reporter: Dmitri Blinov


Now we have a possibility to access an object property by specifying either {code}object.property{code} or {code}object."property"{code} expression, but not {code}object.`property`{code} expression. Since interpolated strings can be used anywhere in scripts as ordinal strings, it would be logical to allow them to be used in property access operators too. It would allow to have the property name not necessarily to be a constant, but to be evaluated without using the array access operator, since property access operator and array access operator could be implemented (overloaded) differently for the object.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)