emdash / udlang

A practical, functional language for stream processing.
GNU Lesser General Public License v3.0
1 stars 0 forks source link

`.` operator only works on a subset of expressions. #13

Closed emdash closed 3 years ago

emdash commented 3 years ago

It is unclear if this is a separate issue, or a duplicate of #8, but a comment found in the code notes that "an arbitrary" expression cannot appear as the left hand side of a selection.

If so, the fix for #8 might be as simple as moving Selection "earlier" in the expression rules, i.e. between InvTerm and the Call / TemplateCall expressions. If we fix #8, we can probably close this too. Whoever fixes #8 will be in a position to say.

We probably actually don't want to allow arbitrary expressions on the left-hand side, so long as things like (...).foo can remain a work-around for edge cases.

emdash commented 3 years ago

This is a duplicate of #8