News for hackers. Stuff that matters.
Re:Ask HN: Will Rust ever become a mainstream systems progra... by Jweb_Guru on Monday April 10, 2017 @06:48PM (#14083250)
Haskell has exceptions. So does Rust. People just prefer to use Either / Result (with good reason).
Re:Ask HN: Will Rust ever become a mainstream systems progra... by soulbadguy on Monday April 10, 2017 @07:04PM (#14083343)
Exception in Haskell ?
Re:Ask HN: Will Rust ever become a mainstream systems progra... by Jweb_Guru on Monday April 10, 2017 @07:06PM (#14083348)
Yeah. Try grabbing the head of an empty list, for instance. People for the most part don't like exceptions in Haskell, but that's not the same as the language not having them.
Re:Ask HN: Will Rust ever become a mainstream systems progra... by dbaupp on Tuesday April 11, 2017 @12:42AM (#14084921)
The `error` function is approximately `throw`.

Catchable with: https://hackage.haskell.org/package/base-4.9.1.0/docs/Contro...