3 ms·
Except it's possible to miss checking errors in golang (accidentally either by not assigning the return value, or by overwriting a previously assigned error). W
by apta 8y ago
Except it's possible to miss checking errors in golang (accidentally either by not assigning the return value, or by overwriting a previously assigned error). Whereas in a language with exceptions, this is not possible unless by explicitly adding code to ignore exceptions.
Do you ever see golang code that handles errors returned from fmt.Println?
- carc 8y agoI think I agree with you - I'm just trying to understand the other perspective from someone that seems to think not having exceptions is an improvement. I've mostly worked using java and go and to be honest I think I prefer exceptions because you should (almost) always check error codes in go anyway, and if you forget, you just made debugging much more difficult.
- apta 8y agoYes, we're on the same page. It just seems that people parrot what golang authors say without actually deeply thinking about it.