4 ms·
I like what Chris Lattner said about language design in Lex Fridman podcast, that you know when you're doing something right because it "feels" right. Rust has
by rustnote 5y ago
I like what Chris Lattner said about language design in Lex Fridman podcast, that you know when you're doing something right because it "feels" right. Rust has a bunch of syntactic sugar which gets critised in many languages, but to me things like error returns with ? "feels" right. Love Go as well, and the error handling makes a lot of sense in concept but it just doesn't "feel" nice to look at or use.
I like there's a language that has such a strong vision, but dealing in absolutes has drawbacks, a little sytactic sugar would make error handling a lot nicer.
- fourseventy 5y agoFor what it's worth I really like how go handles errors.
- shakezula 5y agoI’m with you in this one, Go’s error handling was intuitive to me. It was my first compiled and typed language, though. That might bias my experience.
- jatone 5y agoeh having used both, rust's approach isn't any better. when you need to decorate an error, which generally is a lot of the time, rust has the same ergonomics as golang. they optimized code for a generally rare situation. I do appreciate rusts match syntax though.
- otabdeveloper4 5y ago> that you know when you're doing something right because it "feels" right Absolutely false. When you write the really groundbreaking and important software "feels right" is absolutely not what you should be experiencing. The correct mode you should be in is "holy fuck how did I get here, and can I come out in one piece"? (A: no, you can't, but the new you will be a better you.)