3 ms·
Option is the better of the two. With a missing variant, there's no way to encode "infallibly successful". All call sites would have to check for a missing vari
by junon 2y ago
Option is the better of the two. With a missing variant, there's no way to encode "infallibly successful". All call sites would have to check for a missing variant in all cases.
- danhau 2y agoThis. Enum with a “missing“ variant is basically the billion dollar mistake again… kinda.