News for hackers. Stuff that matters.
Re:From Rails to Clojure, Then to Java, Then Back to Rails by lispm on Wednesday March 21, 2018 @02:29PM (#16641015)
> 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.

There are no comments on this comment yet.