Tales from the Evil Empire - On accessing chains of potentially null properties

added by Robert Greyling
6/25/2014 11:34:54 PM

4 Kicks, 111 Views

We’ve all done that, and it’s just sad. There seems to be a law of the Universe that says that if your code looks like a wedge, like the code above, then something is wrong with that code, or with the language it’s expressed in. It illustrates one of the reasons why Tony Hoare, inventor of Quicksort, called the null reference his “billion-dollar mistake”.