Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I am not sure it does, but:

(7 + 2) * (2 + 5) in normal, infix notation

* + 7 2 + 2 5 in polish notation, http://en.wikipedia.org/wiki/Polish_notation

vs reverse polish which is:

7 2 + 2 5 + * (or 7 2 25 + + * ) which is easy to evaluate, but not necessarily to read)



Sorry, I should have added some context:

>Notice that RPN requires no parenthesis, unlike the polish notation of Lisps where the operator comes first, and RPN requires no precedence rules, unlike the infix notation used in most programming languages and in everyday arithmetic.

This seems wrong to me. It's the lack of variadic functions that is the relevant difference to lisp in terms of doing away with parens, not PN vs RPN.

Love the article, though




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: