You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the qualities I enjoy of JMESPath is its syntactic simplicity.
I have seen a number of proposals to introduce new syntax for various purposes that has me concerned.
One example is adding a regex operator.
I would like to propose that operators and syntax be reserved for transforming, referencing, and subscripting data structures and not data values. All value specific operations should be implemented as functions. The exception to this would be arithmetic operators intended to operate on values.
This means all string operations other than those that could be reasonably described by an arithmetic operator should be implemented as a function.
Having complex value operations described as functions makes JMESPaths more readable.
The text was updated successfully, but these errors were encountered:
a number of proposals to introduce new syntax for various purposes that has me concerned
Could you point them out as I'm interested where the proposals are. Might reveal the location where JEPs are actually being considered as it seems this repository has gone stale
This comment also proposes a new operator that I am on the fence on if it meets my criteria.
jmespath/jmespath.js#52 (comment) proposes new operators in line with what I am proposing, but another post suggests not even providing arithmetic operators. From a purist perspective they may have a point.
Ordering operators muddy my idea as it would be quite convenient to be able to sort or filter heterogeneous lists.
One of the qualities I enjoy of JMESPath is its syntactic simplicity.
I have seen a number of proposals to introduce new syntax for various purposes that has me concerned.
One example is adding a regex operator.
I would like to propose that operators and syntax be reserved for transforming, referencing, and subscripting data structures and not data values. All value specific operations should be implemented as functions. The exception to this would be arithmetic operators intended to operate on values.
This means all string operations other than those that could be reasonably described by an arithmetic operator should be implemented as a function.
Having complex value operations described as functions makes JMESPaths more readable.
The text was updated successfully, but these errors were encountered: