Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pknopf
on March 9, 2018
|
parent
|
context
|
favorite
| on:
C++ Core Guidelines
People gripe at Go's error checking, claiming it's verbose, etc.
But, I like it. Fully and clearly expressed intent for the handling of errors.
krylon
on March 9, 2018
[–]
In a programming language that allows functions with multiple return values, error values of some sort become almost natural. In Lua, the idiom of returning "nil, errormessage" on failure is very common, too.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
But, I like it. Fully and clearly expressed intent for the handling of errors.