|
|
|
|
|
by kazinator
27 days ago
|
|
Ok and Err are "thingies" which are in the type system, which give rise to distinctions that allow for compile-time diagnostics. They are part of the type. Ok and Err are not just type constructors because they appear on the left hand side in pattern matching: they "do" matching and destructuring also. |
|