-
Notifications
You must be signed in to change notification settings - Fork 44
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
Names of take_until
and take_till
don't distinguish them
#487
Comments
See also rust-bakery/nom#968 |
Why take_till and take_untill are not the same as repeat_till, which receives a Parser as a termination condition, I think take_till and take_untill could be the same way |
|
|
Yes |
I've been thinking about your reply for a long time and have been reading the winnow code lately. And I've been comparing winnow's api to regular expressions. I found repeat_till to be the functional equivalent of a superset, t similar to the repeat syntax in regular expressions. And take_while,take_till and so on is a subset of it, some operations repeat_till can do, but it might be faster to use take,take_while? So I'm wondering if it's necessary to just keep repeat_till, and then use specializations for take,take_while and such? |
If you know of a way to to get the performance benefits of |
What I'm wondering is why |
That depends on how expensive your error type is and how much the optimizer can do as looping over parsers has more overhead. That also leaves out one of the |
From #485
See also #95
The text was updated successfully, but these errors were encountered: