News for hackers. Stuff that matters.
Re:Views on Error Handling by jjjensen90 on Saturday July 18, 2020 @05:58PM (#23885196)
Though I don't think it's perfect, languages like Go that treat errors as simply another type and you check as a return value do get closer to treating errors and success symmetrically versus an exception throwing and typing system like some other languages.
Re:Views on Error Handling by monocasa on Saturday July 18, 2020 @06:01PM (#23885212)
Building on that, the ADT languages with full option types here are fantastic here, because the shape of the data in each case can be taught to the compiler.