Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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


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


.unwrap() is the new // TODO:


for better or worse...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: