4 ms·
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).
by progbits 3y 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).
- jmarchello 3y agoGood point, a poor assumption on my part
- wizhi 3y agoWhat would be the big gain from this, over the existing approach using multiple return values?