better to say they "should" not be null. A pointer, however, null is a valid, expectable value.
-
-
I like to treat refs as "never null" because of the expectation. But when debugging, always be ready for a null ref.
-
it then makes a good way to communicate existence. If my function returns a pointer, check it first. If ref, no check.
- Näytä vastaukset
Uusi keskustelu -
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.