3 ms·
I like Go's error handling. The reader knows exactly which lines of code can encounter an error, and exactly how the error is handled. I find that exception-ba
by kweingar 2y ago
I like Go's error handling. The reader knows exactly which lines of code can encounter an error, and exactly how the error is handled.
I find that exception-based code is much harder to read. The happy path is clearer, but exceptional code paths are often completely obscured. It's harder to reason about what state the program is in when the exception is handled.