First Draft: Nominal Sum Types via `enum union` and `switch` Expressions

Meta jared771 at gmail.com
Mon Sep 14 14:07:17 UTC 2026


On Monday, 14 September 2026 at 06:35:13 UTC, Meta wrote:

That first example should be:
```d
enum union ConfigValue
{
     case bool,
     case long,
     case double,
     case string,
     case string[],
}
```

The caseless version is a holdover from an earlier version that I 
forgot to change.


More information about the dip.development mailing list