8000 Improve ParserGenerator readability by djc · Pull Request #29 · alex/rply · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Improve ParserGenerator readability #29

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

djc
Copy link
Contributor
@djc djc commented Jun 8, 2014

I'm not sure why you wrote it this way, but adding a few empty lines, early continues and inverting conditions to handle simple cases first seems to me like it makes this code much more readable.

@djc
Copy link
Contributor Author
djc commented Dec 29, 2014

Merged with master, please consider (use git diff -w to check that nothing substantially changes).

@djc
Copy link
Contributor Author
djc commented Oct 6, 2015

Hey @alex, any more feedback?

@djc
Copy link
Contributor Author
djc commented Jul 23, 2018

@alex this still applies after 3 years and was also useful when I was adding some debugging to the parser generator code. Please consider for merging or just close it if you think it's not an improvement.

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.

1 participant
0