-
Notifications
You must be signed in to change notification settings - Fork 543
nucleotide-count has no template #512
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
Comments
As #444 indicates, using That means I'd be down w/ |
If you're not down with having the functions be partial, I think |
If you are willing to share your opinions, that would be a chance to influence policy. I imagine most of the exercises were made when https://doc.rust-lang.org/book/first-edition/error-handling.html was the only edition of the book. It barely mentioned panics. To be fair, it did mention in https://doc.rust-lang.org/book/first-edition/error-handling.html#a-brief-interlude-unwrapping-isnt-evil that panicking should indicate a bug in the program. These days there's https://doc.rust-lang.org/book/second-edition/ch09-00-error-handling.html and various subsections
For example, perhaps the sentence is relevant:
If this is to be the case, when would be a situation where the Rust track would want to use |
nucleotide/src/lib.rs
should beAlso, these should arguably return
Option
instead ofResult
, or justpanic!()
with a failedassert!()
on bad input.The text was updated successfully, but these errors were encountered: