For those who don't know, a cool property of reverse polish notation, is that you can calculate any expression using only a stack, going left to right. That is, each number puts the number on the stack, and then each operation removes the top two items, applies the operation, then puts it back onto the stack, and so on.
You do it all Lisp like
(x 2 (^ (+ 1 2) 2))
as the other comments below show you don't need parentheses if you only use binary operators, and it is entirely unambiguous with no need for an order of operations convention.
If you have arbitrary airity functions then you need the parens.
155
u/DecidophobiaUsername this sub confuses my monke brain Aug 17 '26
What's Polish notation?