draft proposal for Sum Types for D

Timon Gehr timon.gehr at gmx.ch
Tue Nov 29 14:49:36 UTC 2022


On 11/29/22 07:26, Walter Bright wrote:
> Go ahead, Make My Day! Destroy!
> 
> https://github.com/WalterBright/DIPs/blob/sumtypes/DIPs/1NNN-(wgb).md

Maybe you want to consider this example:

struct S(T...){
     T members;
}

I guess this creates multiple cases, but it's a good thing to keep in 
mind, also for the implementation.


More information about the Digitalmars-d mailing list