4 ms·
> It's really important to keep in mind that errors are adopted from error values in C, which means that their idioms and usage is inspired by that rather than
by Dewie3 11y ago
> It's really important to keep in mind that errors are adopted from error values in C, which means that their idioms and usage is inspired by that rather than by exception handling. Many new Go programmers (including me, when I started) were more familiar with exception handling in higher-level languages than error handling in idiomatic C, so it does take some getting used to.
It's also important to keep in mind that people who don't like Go's approach to error handling might not be in favour of the exception-handling way, either. :)
https://news.ycombinator.com/item?id=9439948 https://news.ycombinator.com/item?id=9439948