ietf-wg-jsonpath / draft-ietf-jsonpath-base

Development of a JSONPath internet draft
https://ietf-wg-jsonpath.github.io/draft-ietf-jsonpath-base/
Other
59 stars 20 forks source link

Logical operator semantics #198

Closed glyn closed 2 years ago

glyn commented 2 years ago

See also this rendered version.

Ref: https://en.wikipedia.org/wiki/Boolean_algebra#Laws

Fixes https://github.com/ietf-wg-jsonpath/draft-ietf-jsonpath-base/issues/188

timbray commented 2 years ago

To be honest I also considered a comment along the lines of "couldn't we just say 'standard Boolean math'?" But (another little -used math degree here) I found it pleasing and, on reflection, possibly beneficial for an implementor.

timbray commented 2 years ago

Among other things, it dawns on me that if I were implementing, I'd copy-paste all those lines into a unit test.