Hacker News new | ask | show | jobs
by rwbt 247 days ago
Odin supports multiple returns and the `make` proc returns an error value that can be optionally checked.
1 comments

Optional error checking based on a second return value is just asking for footgunnery, Go made this same (IMO) mistake.
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.