3 ms·
Brackets, asterisks, and commas give array indexing, pointers, and the clean separation of function arguments. (incf (elt vector 2)) ..versus.. ++vector[2] wh
by goldenkey 13y ago
Brackets, asterisks, and commas give array indexing, pointers, and the clean separation of function arguments.
(incf (elt vector 2))
..versus..
++vector[2]
which one is more readable?
LISP is not to be taken seriously. It's an academic curiosity, and cute, novel, not a language that needs continued zealots. It has no market share..the reasons are always going to be the same. The language is esoteric. I wouldn't program anything serious in JSON so why would I use LISP, where every semantic is a list..not even a hashmap.
http://imgs.xkcd.com/comics/lisp_cycles.png http://imgs.xkcd.com/comics/lisp_cycles.png
"These are your fathers' parenthesis"
- zck 13y ago>(incf (elt vector 2)) ..versus.. ++vector[2] One reason I like Lisp is that I don't have to think about operator precedence.
- goldenkey 13y agoMath expression: a(8b^2+1)+4bc(4b^2+1) In LISP: (+ (* a (1+ (* 8 b b))) (* 4 b c (1+ (* 4 b b)))) Oh, that silly operator precedence, lets just jam our heads in a vice while we unravel the nesting.
- aerique 13y agoI'm really not going to participate in a cherry picking contest on PL syntax and while my experience has show that Lisp is not for everyone, I'm quite surprised at the hostility shown towards it by you and other people on this page. I'm not quite sure whether it is just plain trolling or traumatic experiences with Lisp at college. (The latter which I can understand since being allowed to only use a very limited part of the language to solve convoluted problems can be quite off-putting.)