Hacker News new | ask | show | jobs
by manchmalscott 507 days ago
This is why every calculator ever should have a RPN mode. Postfix notation removes all of that parsing ambiguity.

I ended up making my own RPN calculator in C++/Dear ImGui because I wasn’t happy with any of the options for desktop Linux and, implementation wise, RPN is dead simple. Grab values off the stack, apply operator, push back onto stack.