-
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
Improve docs by adding parse
earlier
#529
Comments
For the tutorial,
As far as the |
Maybe for the tutorial, in chapter 1, it could be a small mention right after the example.
What do you think?
I think the example you see the moment you go to https://docs.rs/winnow/latest/winnow/ can be a bit hard for beginners. But I agree with your point. Feel free to close the issue if it doesn't apply, I think my main wish would be to see the |
What are your thoughts on #536? |
That looks much better! Thanks 🙏🏻
…On Tue, 4 Jun 2024, 19:59 Ed Page, ***@***.***> wrote:
What are your thoughts on #536
<#536>?
—
Reply to this email directly, view it on GitHub
<#529 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AATXJWDDZ7VWJF5O676JTMTZFYFBBAVCNFSM6AAAAABIQLHR5SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBYGIYDIMZVGY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Please complete the following tasks
winnow version
1.65
Describe your use case
The docs don't make enough use of
parse
till Tutorial 7. I think introducing earlier would help people close the gap between the initial parser and the finished app.On top of that, it makes
winnow
"less scary", because the&mut str
is only required while parsing, you can still use your&str
with it, which doesn't have to be mutable (does it make sense?)The way I usually approach it, is to write a simple parser and then I want to see it working.
Describe the solution you'd like
I propose adding
parse
earlier on.On:
parse_next
, but at that point I think it should be used the user facingparse
, or at least mention it)libs.rs
I think it should be changed, theparse
inside theColor::from_str
IMO is a very important point, but it's a bit lost. And it's not used oncss/main.rs
as far as I can see, I propose keeping it as simple as possible.Something like this, would highlight the most important parts of the parser:
Thoughts? I don't mind sending some PRs
Alternatives, if applicable
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: