-
Notifications
You must be signed in to change notification settings - Fork 88
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
GEN-108(issue): Show some minimal but working example on the main documentation page #3209
Comments
Hi @dpc and thank you for your suggestion. It's a very good concern. Are you happy to provide a PR? |
@TimDiekmann I could, but I'm not even sure exactly how it should look like. As a frequent returning user, I don't even know how do developers of Should it be:
or
or should they start without thiserror first? With But then, if I want to tell someone "hey, try handling errors with |
The "issue" with error-stack is that there is no "put I noticed myself using structs more often than enums for As a rule of thumb, and probably something which is good as an intro, you could say that
For the example I'd go with an enumeration. Maybe it's worth pointing out explicitly in the docs that in comparison to I would not use |
It should have something to put a new user on some rails and propel them forward.
OK
I would use it, and mention in one comment that it is not necessary. It just makes everything shorter and easier. Personally I use 100% of time if I go with a enum. |
The general migration strategy to
I think it's fair to do that but at least in the very first example, |
They're confusing and unnecessary to actually start using
Users migrating existing projects are not a target of this issue. :D Don't get blinded by all your experience actually using |
https://docs.rs/anyhow/ . Number of
|
Related Problem
I'm a returning user, trying error-stack again, and I go to https://docs.rs/error-stack and I see Quick-Start Guide which doesn't actually show me any full, usable code. Instead it jumps straight to discussing some aspects of error-stack.
What I'd like is a bit of copy-pasta that reminds me what goes where, and how to get started. I was able to find some example, which will do, but it's just inconvenient.
Proposed Solution
Take this example, get rid of all the unstable stuff, slap it right under Quick-Start Guide header.
Alternatives
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: