5 ms·
> It's not so much the parens, but the nested structure (and that all of the code is in that structure) I should have explained myself more clearly, I thought
by NAFV_P 12y ago
> It's not so much the parens, but the nested structure (and that all of the code is in that structure)
I should have explained myself more clearly, I thought that the operator appearing at the beginning of the list means that operator precedence is no longer relevant. With infix operators the precedence is important.
- aerique 12y agoYes, this is also correct. In most (if not all) Lisps the generic structure is "(operator [arg1] [arg2] [...] [argn])".
- Crito 12y agoInfix languages are trivial to parse; undergrad CS students typically do it the same week that they learn about parsing prefix and postfix languages. What actually makes lisps easy to parse is a near complete absence of syntax; particularly structures/constructs that require considerable effort to disambiguate.