Excellent article - thank you very much! That was "the last straw" that got me going ...
One thing that struck me: Both you and Crockford avoid introducing "," (comma) as an infix operator, to parse all kinds of lists as expressions, which would be very natural to me. Is there a general problem with doing so, or is it just a deliberate design decision?
I probably found the answer myself, it's overgeneration, right?! You lose control over substructures, like the ":" pairs in dicts, or the initializer part in C-style for-loops, if you allow to recurse in generic expression parsing.
Excellent article - thank you very much! That was "the last straw" that got me going ...
One thing that struck me: Both you and Crockford avoid introducing "," (comma) as an infix operator, to parse all kinds of lists as expressions, which would be very natural to me. Is there a general problem with doing so, or is it just a deliberate design decision?
I probably found the answer myself, it's overgeneration, right?! You lose control over substructures, like the ":" pairs in dicts, or the initializer part in C-style for-loops, if you allow to recurse in generic expression parsing.