3 ms·
This is, of course, a narcissistic nonsense. A primitive arithmetic interpreter and the set primitive (why?) is not even close to what Lisp is. Lisp is not ju
by dschiptsov 14y ago
This is, of course, a narcissistic nonsense.
A primitive arithmetic interpreter and the set primitive (why?) is not even close to what Lisp is.
Lisp is not just a prefix notation with parenthesis. It begins with the notion that code is data - the list structure and that everything is a symbol, a reference and that a value has a type, not a variable, which, together, gives us macros for free.
An implementation of a prefix-notation calculator? Well. It is less than one screen of Scheme code, and is a part of one lecture of freshman's CS61A course.
btw, people who have seen Scheme interpreter from SICP and capable to appreciate its beauty and elegance (structure, clarity, compactness) would never try to do something like that.)
- deleted 14y ago[deleted]
- phaet0n 14y agoParenthetically speaking, are you aware of the issue with your parentheses?