by SomeCallMeTim · 10y ago · 0 comments
6 8 7 5 4 + * - + .
-49 ok
Tell me that's easier to read than 8+6-(4+5)*7
Parenthesis can make things harder to understand if poorly used. RPN can make things harder to understand if poorly used.The reverse is also true for both. Forth does not prevent bad code.
Because of this effect you cannot trust your own sense of what is inherently easier to read, it will be biased by experience.
Funny you should say that, when basically every person in the world going through a basic mathematics curriculum will be experienced with infix notation, and completely unfamiliar with RPN.
True, maybe you for some reason have more experience with RPN. So use Forth.
But there is a clearly superior notation when you're talking about "which one will most people understand." HP calculators notwithstanding.
Whether you need more complicated arithmetic expressions depends entirely on what field you are working in. I would not call `8+6-(4+5)*7` complicated by any means.