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.
-
if my function returns a ref and it is null, hunt me down and demand recommence for my idiocy.
- 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.