std.sumtype nested SumTypes

NonNull non-null at use.startmail.com
Mon Jan 22 21:11:17 UTC 2024


On Monday, 22 January 2024 at 16:35:39 UTC, ryuukk_ wrote:
> On Monday, 22 January 2024 at 16:16:56 UTC, NonNull wrote:
>> I am defining a new value type (small struct) from some old 
>> value types that are already `SumType`s.
>>
>> So I want to have some `SumType`s as some of the alternative 
>> types in another `SumType`.
>>
>> How  how efficient this is, including space efficient?
>
> Without knowing what you are doing, this sounds like a bad 
> idea, i suggest to revise your design

I'd like SumType to combine the implicit tags so there's only one 
tag.


More information about the Digitalmars-d-learn mailing list