|
|
|
|
|
by feanaro
3206 days ago
|
|
I think the author's goal was quite obviously to have strong sum types with compile-time safety and branch resolution. In other words, to make it impossible to use the value stored in the variant in a manner inconsistent with its type because doing otherwise is a compile-time error. The above parts of the standard library don't help in achieving this goal. |
|