News for hackers. Stuff that matters.
Re:The Next Step for Generics by nicoburns on Wednesday June 17, 2020 @04:23PM (#23556272)
One benefit I've found with error-enums is just being aware of all the possible errors that can occur. You're right: 95% of the time you can't do anything except log/retry. But that 5% of the time become runtime bugs which are a massive pain. It's really nice when that is automatically surfaced for you at development time.

There are no comments on this comment yet.