Re:It's 2023, so of course I'm learning Common Lisp
by mathisfun123 on Thursday July 27, 2023 @01:25AM
(#36889269)
I'm sorry but are you really going to pretend like car and cdr are not core to lisp?
>list[0] and list[-1]
That is not car and cdr; closer would be list[0] and list[1:] if lists were cons in python.
>Mathematica expressions are in many respects like LISP lists. In Mathematica, however, expressions are the lowest-level objects accessible to the user. LISP allows you to go below lists, and access the binary trees from which they are built
This is a quote from 1986. I wonder if the language has changed much since then
https://reference.wolfram.com/language/tutorial/Expressions....
Re:It's 2023, so of course I'm learning Common Lisp
by behnamoh on Thursday July 27, 2023 @01:37AM
(#36889339)
Read PG's "Roots of Lisp" and you'll understand what I mean.
Re:It's 2023, so of course I'm learning Common Lisp
by mathisfun123 on Thursday July 27, 2023 @01:40AM
(#36889363)
I believe that is an argument from authority (if I remember correctly).
Meanwhile, you brought up examples from Mathematica docs that talk about head/tails (car/cdr) but by that logic, Python is a Lisp too because you have:
and Maybe your Clojure/Racket experience wasn't enough to teach you what the essence of Lisp was. From your first link:"Mathematica expressions are in many respects like LISP lists. In Mathematica, however, expressions are the lowest-level objects accessible to the user. LISP allows you to go below lists, and access the binary trees from which they are built."
That right there is telling you that Mathematica is not a Lisp.
Edit: Corrected the Python list example.