OT: (C#) Type Unions for C#

Richard (Rikki) Andrew Cattermole richard at cattermole.co.nz
Mon Aug 12 10:37:08 UTC 2024


On 12/08/2024 10:32 PM, Quirin Schroll wrote:
> Tag-based type unions where order matters, duplication matters 
> (different tags), they do not auto-inline, and the empty one is at 
> definition site its own type.

There is also tag based unions where order doesn't matter.

I.e. hashed tag name/tag type.

This is the one I propose, as it allows changing the sumtype elements 
without having to perform a match.


More information about the Digitalmars-d mailing list