Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
cwalv
2y ago
0 comments
Share
In my experience, the vast majority of the time the best (or only) way to correctly deal with the error is to propagate it up the stack. Making this optional (having to explicitly check return values) doesn't make it more likely to be done.
0 comments
default
newest
oldest
preseinger
2y ago
you say "optional", i say "explicit"
it's important that i see the `return` keyword in the source code
j
/
k
navigate · click thread line to collapse