3 ms·
This is what I love about Rust, and other languages with these kinds of constructs. You have to acknowledge that something might e.g. fail. You can choose to do
by gruelsandwich 3y ago
This is what I love about Rust, and other languages with these kinds of constructs. You have to acknowledge that something might e.g. fail. You can choose to do "nothing" (e.g. unwrap), but it must be done explicitly, which makes the ignored cases simple to identify later
- satvikpendem 3y agoI used to use OCaml before using Rust, it was similarly great and it's where Rust got the notion of the Option and Result types.
- couchand 3y ago.unwrap() is the new // TODO:
- farmeroy 3y agofor better or worse...