This syntax regarding null checking baffles me

12345swordy alexanderheistermann at gmail.com
Thu Jan 7 04:57:55 UTC 2021


if (c !is null) Why?????

Would it be simpler to type

if (c is not null)

on a related note. Why are not we allowed to do this?

if (c != null)

when other languages such as c#/java allow for it?

-Alex


More information about the Digitalmars-d mailing list