Hacker News new | ask | show | jobs
by Animats 3755 days ago
Yesterday, I was complaining that Rust encourages this sort of thing. In Rust, it comes from the error handling, though. You have to write lots of

    x().and_then(|foo| exp).and_then(|foo| exp)
to handle errors. The imperative form requires a match statement after every function call that can return an error. Or "try!()", which bails with a return. It looks like we just have to get used to this Haskell-like style.