Re:Algebraic Data Types for C99
by im3w1l on Thursday May 09, 2024 @12:37PM
(#40309991)
A trait is a collection of variants that may or may not have unknown members. An enum is a collection of variants that may not have unknown implementations. So enums are in some sense a subset of traits. Hence every property of traits is also a property of enums. Does that make sense?
Those suggestion of your look interesting, but I haven't thought them through enough to have an opinion.
Those suggestion of your look interesting, but I haven't thought them through enough to have an opinion.