Adding the ?. operator to D

Stefan Koch uplink.coder at googlemail.com
Sat Sep 12 19:26:30 UTC 2020


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.


More information about the Digitalmars-d mailing list