3 ms·
Lisp is Forth where "(" pushes next word onto separate execution stack and ")" executes it. Hence (+ 1 2) is equal to 1 2 +. I made this discovery maybe 1975, b
by timonoko 6y ago
Lisp is Forth where "(" pushes next word onto separate execution stack and ")" executes it. Hence (+ 1 2) is equal to 1 2 +. I made this discovery maybe 1975, but Forth was not yet invented, or rather Internet was not yet invented, so I did not know about Forth. So it was a property of my very own Symbolic Stack Machine on Nova 1200.
- kaba0 6y agoI’m not too familiar with LISPs, but that would only be the case with greedy evaluation, wouldn’t it?
- timonoko 6y agoEh. What. It is regular Forth with one additional stack. Except in real Forth "()" is reserved to something else.
- nils-m-holm 6y agoYes. (And that's what every LISP I know does.)