Re:You already use Lisp syntax
by Morgawr on Wednesday May 21, 2014 @08:52AM
(#7777908)
There are a lot of reasons to prefer RPN over infix syntax and why Lisp has chosen to adopt this notation. Although, I agree with the critiques of the article, it's not really saying much.
[ Parent
| on HN ]
Re:You already use Lisp syntax
by bunderbunder on Wednesday May 21, 2014 @09:32AM
(#7778068)
RPN is postfix notation. You add 1 and 2 using "1 2 +"
Lisp is prefix notation, which is just the opposite.
I just realized that makes Lisp "Polish Notation".
I'm sure that opens up some really horrible jokes.
Re:You already use Lisp syntax
by bunderbunder on Wednesday May 21, 2014 @02:16PM
(#7779809)
Not 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
Re:You already use Lisp syntax
by AnimalMuppet on Wednesday May 21, 2014 @02:25PM
(#7779863)
To me, it opened up a really horrible thought: Polish plus Hungarian.
Lisp with Hungarian names (shudder).