Hacker News new | ask | show | jobs
by progbits 1037 days ago
Error handling != exceptions.

Step one would bee sum types, so only valid value space can be represented (return value or error, but not both or neither).

2 comments

Good point, a poor assumption on my part
What would be the big gain from this, over the existing approach using multiple return values?