News for hackers. Stuff that matters.
Re:Where Everything Went Wrong: Error Handling and Error Mes... by TacticalCoder on Friday February 19, 2021 @01:48PM (#26196460)
GP mentionned "maybes". In Haskell (and others) you have for example both maybe and either. When you've got an either you can have either (ah!) the left to indicate an error (and which error) or the right to hold the correct value. And the type system forces you to at deal with both cases (like a maybe forces you to deal with the case where it's "maybe not").

There are no comments on this comment yet.