|
|
|
|
|
by avgcorrection
1206 days ago
|
|
That doesn’t make sense. `null | false | true` is not equivalent to `Option<bool>` or `Option<false | true>`. Just like `zero | one | two` is not equivalent to `Option<one | two>`. Assuming that `true | false` is equivalent to something like `enum { true, false }`. |
|
Isn't it ? both cases represent a type than can express 3 variants