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

I'm happy that error handling landed in first place; I feel the same way. Rust is the first language I've used with ADTs, and they're incredibly expressive. It allows the error system to be a set of idioms built atop an expressive type system (okay, so the ? operator does add a little sugar), rather than a discrete language feature, like with exceptions. It brings error handling to the forefront, and it's a big reason why people tend to say "if it compiles, it works" when talking about Rust.


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

Search: