Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
rwbt
· 1y ago · 0 comments
Odin supports multiple returns and the `make` proc returns an error value that can be optionally checked.
Comments
[–]
klardotsh
1y ago
Optional error checking based on a second return value is just asking for footgunnery, Go made this same (IMO) mistake.
[–]
rwbt
OP
1y ago
One can use `@(require_results)` to force the user to check for error. That paired with `or_return` or `or_else` in Odin mostly take away all foot guns.