First Draft: opUnwrapIfTrue
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Sat Mar 14 09:49:25 UTC 2026
On 14/03/2026 3:41 PM, Walter Bright wrote:
> On 3/13/2026 6:45 PM, Richard (Rikki) Andrew Cattermole wrote:
>> Your switch example shows that you have not simplified the problem
>> down correctly.
>>
>> ``switch (r.get(x) ? x : x.init)``
>>
>> Should be:
>>
>> ``switch (r.get(int.init))``
>
> I don't know what is incorrect about it.
It is the wrong idiom for what is being archived, it is easily used wrong.
My reply was all about why this idiom is not one I can recommend.
More information about the dip.development
mailing list