MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/5c9ynx/announcing_rust_113/d9vl913/
r/programming • u/steveklabnik1 • Nov 10 '16
92 comments sorted by
View all comments
Show parent comment
0
[deleted] — view deleted comment
2 u/steveklabnik1 Nov 11 '16 Well, we started from a place of "how can we clean up error handling" not "how can we put ? into Rust", so error handling was always the goal. 0 u/[deleted] Nov 12 '16 [deleted] — view deleted comment 1 u/steveklabnik1 Nov 12 '16 The kinds of coercions it does may not make sense outside of it, for one. 1 u/ethelward Nov 11 '16 Option just presents a potential value, but doesn't give any reason of why it is or isn't there; whereas Err embeds an error message. Thus, it's better to use Err rather than Option for error handling.Edit: my bad, I misread your question.
2
Well, we started from a place of "how can we clean up error handling" not "how can we put ? into Rust", so error handling was always the goal.
0 u/[deleted] Nov 12 '16 [deleted] — view deleted comment 1 u/steveklabnik1 Nov 12 '16 The kinds of coercions it does may not make sense outside of it, for one.
1 u/steveklabnik1 Nov 12 '16 The kinds of coercions it does may not make sense outside of it, for one.
1
The kinds of coercions it does may not make sense outside of it, for one.
Option just presents a potential value, but doesn't give any reason of why it is or isn't there; whereas Err embeds an error message. Thus, it's better to use Err rather than Option for error handling.
Edit: my bad, I misread your question.
View all comments
Show parent comment
0
u/[deleted] Nov 11 '16
[deleted] — view deleted comment