4 ms·
> As with Lisps in general, it has almost no syntax That's not true. Lisp has lots of syntax - actually more than most programming language, because the syntax
by lispm 9y ago
> As with Lisps in general, it has almost no syntax
That's not true. Lisp has lots of syntax - actually more than most programming language, because the syntax is arbitrarily extensible via macros.
The idea of (operator param param ...) is only valid for function calls, but even then the syntax is slightly more complex, since several Lisps have keyword arguments.
But besides (operator param param ...) Lisp also has:
((lambda (arg ...) . body) param ...)
(special-operator ...)
and
(macro-operator ...)
Each special operator comes with syntax. Example is LET.
LET is not
(LET param param)
but
(let (arg ...) declarations . body)
where arg is arg | (arg value)
declaration the is something complex like
(declare (type (integer 0 3) arg))
for a type declaration for the variable arg, which is an integer in the range of 0 to 3.