Adding the ?. operator to D

Per Nordlöw per.nordlow at
Wed Sep 16 21:26:03 UTC 2020

On Wednesday, 16 September 2020 at 19:01:28 UTC, Jacob Carlborg 
>>      C ? C.EXPR : nullable(EXPR).init
> I would like that. It should work for an Optional/Nullable type 
> as well.

You're saying you want the variant with `nullable` and make 
`nullable` builtin?

A interesting alternative would be to return `&C.EXPR` on success 
and null otherwise. Kind of like the `in` operator does.

More information about the Digitalmars-d mailing list