3 ms·
It is a massive problem. It's basically the worse thing about C and they decided to copy it. Easily 60-70% of all go code is about propagating errors to the ca
by LtWorf 1y ago
It is a massive problem. It's basically the worse thing about C and they decided to copy it.
Easily 60-70% of all go code is about propagating errors to the caller directly.
- aatd86 1y agoNot C. C errors are different since they are simply numbers. And spoiler alert, every language propagates errors. Sometimes automatically via exception handling, somewhat simply by returning error values. rust does this too. Matter fact, even javascript might be creeping toward this model of explicit error propagation soon. Good, because it is easier to understand.
- LtWorf 1y agoEasier to understand and even easier to get it wrong!