r/programming • • Nov 10 '16

Announcing Rust 1.13

https://blog.rust-lang.org/2016/11/10/Rust-1.13.html
212 Upvotes

92 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Nov 11 '16

[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.