D3 sumtype api

monkyyy crazymonkyyy at gmail.com
Fri Feb 28 20:15:31 UTC 2025


On Friday, 28 February 2025 at 19:28:04 UTC, Sebastiaan Koppe 
wrote:
> On Friday, 28 February 2025 at 15:54:54 UTC, monkyyy wrote:
>> On Friday, 28 February 2025 at 11:33:50 UTC, Dejan Lekic wrote:
>>> It can hold only one value for God's sake...
>>
>> a nullable!ubyte has 257 states, its 2 values.
>
> Yep. In mir `nullable!t` is just `algebraic!(typeof(null),t)`, 
> and it makes absolute sense.

Thats 2 types, thats not quite what I mean, I do mean 2 values
Theres tradeoffs, if you are only planning on all sumtypes to be 
exactly taggedunions and nullable, a lazy overload seems 
defensible but there are trade offs thats making.


More information about the dip.ideas mailing list