2 ms·
> The ok is optional, if omitted and the assertion fails, you'll get a runtime panic. Great, now my enums can panic because I have to play "be the typechecker
by codygman 10y ago
> The ok is optional, if omitted and the assertion fails, you'll get a runtime panic.
Great, now my enums can panic because I have to play "be the typechecker", instead of focusing on something actually important like business logic.
How is this not seen as universally a bad thing?