top | item 45554803

(no title)

rwbt | 4 months ago

Odin supports multiple returns and the `make` proc returns an error value that can be optionally checked.

discuss

order

klardotsh|4 months ago

Optional error checking based on a second return value is just asking for footgunnery, Go made this same (IMO) mistake.

rwbt|4 months 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.