Questions tagged [nullability]

For questions about nullability of references or pointers in programming language, or having a type qualifier for pointer or reference types which specify whether they can be null or not, in order to improve reliability or efficienct by clarifying when null checks are required or not.

Filter by
Sorted by
Tagged with
14 votes
7 answers
490 views

What are the pros and cons of an Option type in comparison to nullable types?

There seem to be two main ways that languages handle the same concept: Nullable types, like Kotlin, C#, and many other OOP languages Options, like Rust and Haskell,...
Rydwolf Programs's user avatar