3 ms·
I'm just stating a fact, it's slightly unnecessary to reply with your declaration of love for Go. I prefer returning errors as a part of the function result my
by kubb 5y ago
I'm just stating a fact, it's slightly unnecessary to reply with your declaration of love for Go.
I prefer returning errors as a part of the function result myself, as you would in any decent language encouraging functional programming principles.
If anything, it shows that including a feature in a language (exceptions) will not lead to people misusing it if that misuse is not encouraged.