Second draft: Sum Type by Struct

MaxB mberger at wolke7.net
Sun Sep 6 17:19:58 UTC 2026


"A sumtype may be declared as a template."

__sumtype S(Types...) = Types | bool;

-----

I only see a template parameter list. Can I still do the 
following?

__sumtype S(A, B) = A foo | B bar;




More information about the dip.development mailing list