list - What's the formal name for this Syntax? -
sometimes in scheme, have functions take arguments this
add 3 4
what call kind of "list" it's elements a1 a2 a3
? don't think can call list because lists contained in parenthesis , elements comma-seperated.
lisp uses prefix or polish notation syntax.
polish notation, known prefix notation, form of notation logic, arithmetic, , algebra. distinguishing feature places operators left of operands. if arity of operators fixed, result syntax lacking parentheses or other brackets, can still parsed without ambiguity.
add
operator , right part operands.
the arity of operators isn't fixed lisp uses parens in it's syntax group expressions.
Comments
Post a Comment