First Draft: opUnwrapIfTrue
monkyyy
crazymonkyyy at gmail.com
Thu Feb 26 19:03:59 UTC 2026
On Thursday, 26 February 2026 at 13:53:41 UTC, Richard (Rikki)
Andrew Cattermole wrote:
> The DIP:
> https://gist.github.com/rikkimax/21242118e3bc1bf5f28024c2cdc33557
>
> A new operator overload to allow if statements to automatically
> unwrap result types and ensure that the check is called prior
> to, similar to foreach statements support of ranges.
So, one narrow opOverload, for one narrow type, for one narrow
usage pattern?
Id suggest `opLeftAssign` that lets nullable!int define how int
parses the assignment would be a more general feature
More information about the dip.development
mailing list