News for hackers. Stuff that matters.
Re:Nim Community Survey 2021 Results by elcritch on Saturday January 15, 2022 @11:26PM (#29953320)
Nim’s got an Option type, though it’s not as popular as exceptions. There’s also third party option libraries that provide ‘?’ like features.
Re:Nim Community Survey 2021 Results by lostdog on Sunday January 16, 2022 @06:11PM (#29961394)
Having a single Result type as standard has a huge benefit. You can do error handling for every library you use in exactly the same way. You also get decent stack traces because the runtime can reason about a single error type. Unified error handling is, IMO, necessary for making a language a pleasant experience.