jimbraun / XCDF

XCDF: eXplicitly Compacted Data Format. See documentation at Read the Docs:
https://xcdf.readthedocs.io/en/latest/
Other
14 stars 8 forks source link

Generic lists in expressions #75

Open jimbraun opened 8 years ago

jimbraun commented 8 years ago

"(field1, field2)==(1,2)" should be shorthand for "field1==1&&field2==2". "field1==(1,2)" should be shorthand for "field1==1 || field1==2". If we require the RHS to be constants, this is easily implemented within the existing "in" functionality, e.g. "in((field1, field2), (1, 2))" or "in((field1, field2), ((1, 2),(3,4)))" as shorthand for "(field1==1&&field2==2)||(field1==3&&field2==4)".

It is unclear whether it would be useful to also allow variables on the RHS. Probably useful, but uncommon.