3 ms·
It's very controversial, but I like Go's approach of treating errors as return values - because that is ultimately what they are. You can have your language hi
by liampulles 3y ago
It's very controversial, but I like Go's approach of treating errors as return values - because that is ultimately what they are.
You can have your language hide exceptions from the control flow if you wish, but they are still things that result from function calls that you should deal with. Why not make them front and center?