3 ms·
Well, given that the original target for Go was C/C++ programmers, the stance on error handling makes perfect sense. Exceptions are arguably one of C++'s large
by yoklov 12y ago
Well, given that the original target for Go was C/C++ programmers, the stance on error handling makes perfect sense.
Exceptions are arguably one of C++'s largest mistakes, and it requires careful thought to write code in a completely (e.g. strongly) exception-safe way (not to mention it's caused somewhat of a fracture in the C++ community over the years...). Presumably, this is why they don't exist in Go, and it's certainly why they don't exist in Rust.
FWIW, I'm a C++ programmer, and I was a C programmer before that, so my experience with Python is rather limited.