draft proposal for Sum Types for D

rikki cattermole rikki at cattermole.co.nz
Tue Nov 29 15:13:30 UTC 2022


On 30/11/2022 4:10 AM, 12345swordy wrote:
> More importantly does it support?
> 
> sumtype A{
>      Null;
>      A a;
> }

At least in the theory that Null is equivalent to None which should be 
added to our type system and not just defined inline (as it is an 
existing hole).

Question is what to do when you do want to store that typed null.


More information about the Digitalmars-d mailing list