Hacker News new | past | comments | ask | show | jobs | submit login

I have found that with some practice, stack-based is better for writing, infix is better for reading. At least for equations. Pythagoras is trivial to write:

    a a * b b * + sqrt
and in fact the process of entering a calculation can be informative, since you are thinking about the sequence of operations more. Writing infix requires either looking ahead to figure out when to add parentheses, or backing up and adding them after the fact. But I still have to simulate bits and pieces in my head when reading postfix.



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: