Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
dgellow
5y ago
0 comments
Save
Share
You have go-lint or other linters to enforce it. It’s a per-project choice.
0 comments
2 comments · 1 top-level
top
newest
oldest
coldtea
5y ago
· 1 in thread
It's either a "per-project/leave it to the linter" choice, or a "they did this in the language to force people to handle errors close to the source".
Can't have it both ways!
dgellow
OP
5y ago
The “force” is the part that is incorrect, or at least misleading. The go approach is to encourage people to handle it at the call site, and you can use extra tooling to enforce it.
Once you get that point, there is no contradiction.
j
/
k
navigate · click thread line to collapse