Adding the ?. operator to D

aberba karabutaworld at
Sun Sep 13 20:48:27 UTC 2020

On Saturday, 12 September 2020 at 19:26:30 UTC, Stefan Koch wrote:
> On Saturday, 12 September 2020 at 16:51:20 UTC, Per Nordlöw 
> wrote:
>> Has there been any discussions on adding the ?. operator to 
>> simplify structure matching on class trees typically found in 
>> compilers such as dmd.
> Hmm the problem with .? making implicit null checks is that it 
> encourages
> null checks.
> Rather than encouraging a state in which existence and logic 
> are statically asserted.

However, its been implemented in most places due its common use 
in code.

More information about the Digitalmars-d mailing list