|
|
|
|
|
by expression
3597 days ago
|
|
I guess I'm never to actually “get Lisp” to appreciate its syntax. >Aside from the prefix ordering, Common Lisp’s syntax is already a bit more elegant because you can set arbitrarily many variables without repeating the assignment operator over and over again: ; Have to type out `=` three times
x = 10
y = 20
z = 30
; But only one `setf` required
(setf x 10
y 20
z 30)
I utterly fail to see the aforementioned elegance, although I certainly can't miss the line where it happens. |
|
We could make all 3 lines the same with `setf`, but that would be a bit more verbose:
In a program that heavily use the assignment statement, I vote for the shorter form, `=`.