Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix reverse polish conversion #143

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PTrottier
Copy link

The reverse polish notation equivalent for 1 + 2 + 6 looked off to me, so I checked with: https://raj457036.github.io/Simple-Tools/prefixAndPostfixConvertor.html

Indeed, it should be + + 1 2 6 (it is missing an operator)

@orangeduck
Copy link
Owner

While this is technically true I think in the case of this book the current text is more clean in explaining how it works.

@PTrottier
Copy link
Author

Ok, sounds good, feel free to close this. Thanks for your dedication to the book, it is truly a splendid resource.

@PTrottier
Copy link
Author

Or perhaps the example could be simpler, just + 1 2, so that it remains correct and is easier to grasp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants