Phobos 3 Discussion Notes - 02-01-2024

Atila Neves atila.neves at gmail.com
Tue Feb 13 19:50:34 UTC 2024


On Tuesday, 13 February 2024 at 15:27:16 UTC, Paul Backus wrote:
> On Tuesday, 13 February 2024 at 14:08:24 UTC, Atila Neves wrote:
>> I see. This is an instance of a more general problem of "nasty 
>> types" that do "weird" things such as being uncopyable. 
>> Ideally we'd have one in Phobos just for testing and feed it 
>> to basically everything. FeepingCreature mentioned something 
>> like to me at DConf but I can't find it in github after 
>> googling.
>
> If you want some examples to crib from, check out the unittests 
> in std.sumtype. I've done my best to put every weird type I can 
> think of in there. :)

Nice! Now we "just" have to move them somewhere common (so that 
other Phobos modules don't depend on sumtype for no reason) and 
shove them down the rest of Phobos. Somehow.


More information about the Digitalmars-d mailing list