-
Notifications
You must be signed in to change notification settings - Fork 53
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
feat(combinator): add separated #362
Conversation
Pull Request Test Coverage Report for Build 6750273694
💛 - Coveralls |
Thanks for moving this forward! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clippy found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.
Hope this is now better and easier to review. Just to stress again, I'm not sure how correct this code is. Please review carefully. Currently, the infinite loop checks for the element parser (not the separator parser) in |
This PR should not be changing behavior and duplicating the |
I must have misunderstood the request to keep As requested, I've changed it back such that Please note, as requested I kept the implementation and the updating call sites in separate commits, but since the signature of the functions change, they can't be used at the existing call sites, which means there's no way to deprecate them without duplicating them. So currently, the implementation commit ( Slightly off topic: Maybe it would make sense to adopt a squash/rebase flow instead of a merge flow, such that individual commits of the PR can be purely for ease of readability and review, since they don't need to compile as the whole PR gets squashed into a single commit on the main branch. A linear history and readable commit log is a nice bonus. Footnotes
|
This change should not be a breaking change. You can both split out
Squash/rebase workflows lose valuable history and intentionally sending someone broken commits to review can be confusing. |
I think I understand the request now. I've kept deprecated |
Everything should be good to go after these last couple of comments are resolved! Thanks for your work on this! |
Addressed the remaining comments. To lessen the breaking change before, I had considered delaying this to a follow up proposal. But since this is now a non-breaking additive change, now would be an opportunity to choose the right name while avoiding a breaking change in the future. I think naming it |
If you'd like to discuss name changes, I'd recommend looking into whats been done before on #95 and posting your idea there. |
Thanks! |
This attempts to add a
separated
parser that accepts a range similar torepeat
.Towards #98.
I tried to copy as much logic as possible from existing code. I'm unfamiliar with the code and may have missed some things, e.g. checkpoint resets, infinite loop checks, or correct error types. Please double check carefully and feel free to edit if it can be improved.