First Draft: opUnwrapIfTrue

Walter Bright newshound2 at digitalmars.com
Sat Mar 14 02:41:09 UTC 2026


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.



More information about the dip.development mailing list