Reply to post: Re: Null pointers

Mads Torgersen and Dustin Campbell on the future of C#

AndrueC Silver badge
Happy

Re: Null pointers

without having to test whether dictionary exists, then whether helper exists, then whether getAdaptor returns non-null, then whether getProperty returns non-null.

That already exists. It's called the null propagator. It's quite handy actually but feels a little lazy :)

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon