draft proposal for Sum Types for D

rikki cattermole rikki at cattermole.co.nz
Tue Nov 29 20:22:14 UTC 2022


On 30/11/2022 9:18 AM, H. S. Teoh wrote:
> Supporting ctors, postblits, and dtors does increase the complexity of
> the implementation.

Not by enough to warrant ignoring it.

After all, all the logic already exists for structs, just gotta expand 
upon that and add a little more glue code specializing for sum types 
with a switch statement.


More information about the Digitalmars-d mailing list