3 ms·
Proper sum types, if only for proper error handling. The if err != nil dance is extremely verbose and error prone with consecutive checks.
by the_gipsy 5y ago
Proper sum types, if only for proper error handling. The if err != nil dance is extremely verbose and error prone with consecutive checks.
- Jeff_Brown 5y agoThat could also alleviate the no-exhaustive-enum-checking problem mentioned in another top-level comment.