Second draft: Sum Type by Struct

MaxB mberger at wolke7.net
Sun Sep 6 17:08:04 UTC 2026


__sumtype Status = Ok | Error | Warning;

-----

Do they need to be defined elsewhere?

Maybe:

struct Ok {}
struct Error {}
struct Warning {}

__sumtype Status = Ok | Error | Warning;

Or is this not necessary?



More information about the dip.development mailing list