4 ms·
What would be a better design?
by andreygrehov 6y ago
What would be a better design?
- dragonwriter 6y agoStatically requiring a (the default case) non-nillable pointer to be assigned to a non-nil value (presumably, ultimately as a result of an operation that fails if it can't allocate, or one that either fails or returns a non-nil pointer when passed a nillable pointer) before being used? The same thing as is done for any other non-nullable value in static type systems.