A collection of Bad Code Smells in a Catalog form for Developers & Researchers. Code Smell is a typical bad code implementation, and learning these concepts immiedietly makes you a better developer!
Languages that make use of references rather than pointers don’t have this Dualism.
It’s not about references vs pointers. You could easily have a language that allowed “null references” or one that properly separated null pointers out in the type system.
I agree with your point though, using a special Null value is usually worse than using Option or similar. And nullptr_t doesn’t help with this at all.
It’s not about references vs pointers. You could easily have a language that allowed “null references” or one that properly separated null pointers out in the type system.
I agree with your point though, using a special
Null
value is usually worse than usingOption
or similar. Andnullptr_t
doesn’t help with this at all.