-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Parser: Better names for parser util functions #1547
Conversation
@OlegIlyenko I decide to extract it into a separate PR to make review more effective. Can you please review this PR and comment if new names match your suggestion. |
@IvanGoncharov Thanks a lot for considering my feedback and working this PR! I think it reads much better now 👍 I like how easy it is to identify which tokens are optional and which are not. I also like how occurrences of Just an idea to play around with: I feel that term "expect" (or even more explicit variations |
@OlegIlyenko Not sure I fully understand the proposed naming strategy.
Can you please copy this list and add/delete funtions or rename them if needed? |
I mean something like this:
So the idea is to boil it down to only |
So I think there's still a little confusion about the proposed terms, especially around "skip" which I usually read as closer to "I think this might be here but it means nothing if it isn't". The original naming scheme was still confusing because of this, I think. I really like @OlegIlyenko's naming scheme on this, though. |
ff59fc1
to
c7b2852
Compare
I updated PR according @OlegIlyenko last comment. |
Based @OlegIlyenko suggestion:
#1545 (comment)