4 ms·
That's funny. I don't mind writing code. The code I like the best is the code I don't have to debug.
by enneff 14y ago
That's funny. I don't mind writing code. The code I like the best is the code I don't have to debug.
- eta_carinae 14y ago> I don't mind writing code. You should mind writing code that the compiler can write for you, which is exactly what you do when you don't have exceptions (you simulate bubbling up the error manually).
- batista 14y ago>That's funny. I don't mind writing code. The code I like the best is the code I don't have to debug. The code you don't have to write, you also don't have to debug. So you SHOULD mind writing code.
- nightski 14y agoThe assumption here being that if you do not have exceptions, one must write all the intermediate code. That exceptions are the only way of avoiding this. While in Go this may be the case, it is not true in general. One could use an error monad to achieve the exact same thing, albeit in a much safer manner.
- batista 14y agoSure, and in some next generation language yet to be invented you might not even need the error monad! But we're talking Go here.