3 ms·
RPN is postfix notation. You add 1 and 2 using "1 2 +" Lisp is prefix notation, which is just the opposite.
by bunderbunder 12y ago
RPN is postfix notation. You add 1 and 2 using "1 2 +"
Lisp is prefix notation, which is just the opposite.
- mcguire 12y agoI just realized that makes Lisp "Polish Notation". I'm sure that opens up some really horrible jokes.
- bunderbunder 12y agoNot quite. If you drop Lisp's variable-arity operators, that enables you to drop the parenthesis. If you drop the parenthesis, that gives you Polish notation. For example: Lisp: (* (+ 1 2 3) (- 4 5) ) Polish: * + + 1 2 3 - 4 5
- AnimalMuppet 12y agoTo me, it opened up a really horrible thought: Polish plus Hungarian. Lisp with Hungarian names (shudder).
- Morgawr 12y agoYou're correct, I brain farted.