draft proposal for Sum Types for D

Paul Backus snarwin at gmail.com
Fri Dec 2 18:41:40 UTC 2022


On Friday, 2 December 2022 at 16:43:45 UTC, Tejas wrote:
>
> Is it possible to make the syntax `int|float|char` style? We 
> could parameterize it as `alias type(T) = 
> int|float|customType!T;`

Worth noting that templated aliases like this are less useful in 
practice than they look, due to issue 1807: 
https://issues.dlang.org/show_bug.cgi?id=1807


More information about the Digitalmars-d mailing list