3 ms·
Never understood this. I've been doing coding for a quarter century. There is a reason we moved away from manual error handling to exceptions. It's easier to re
by papito 4y ago
Never understood this. I've been doing coding for a quarter century. There is a reason we moved away from manual error handling to exceptions. It's easier to reason about, it's less code, it's better.
The Go fans keep insisting that this error handling in Go is new and fresh. I looked at my Go code, I saw that 2/3 of it is basically checking if a function returned an error, and I moved on. I've done it this way - I am not going there again.
And no, it doesn't force you to handle errors. You can simply not check for errors, just as you would swallow an exception.
My impression of the Go culture is that of the hip kids discovering vinyl.
As my former boss used to say - "there is an easy way, and there is the cool way".