On Sunday, 15 November 2020 at 04:54:19 UTC, 9il wrote:
Truly algebraic Variant and Nullable with an order-independent list of types.
Thanks for sharing it!Could you give a (very short) explanation on why sumtype could not meet your requirements? I am just starting a new D project and have to choose between sumtype and your solution.
The work has been sponsored by Kaleidic Associates and Symmetry Investments.
Much appreciated!