by ibraheemdev · 5y ago · 0 comments
It seems as though there is this common misconception that Rust does not have a concept of null. Rust does have null pointers [1]! The reason many people do not see null often is because working with and dereferencing raw pointers is an unsafe operation
I don't think that's quite relevant, though. Rust doesn't have a concept of nulls like like Java, Javascript, Python, etc do in which just about any variable might contain a value or null. Rust certainly doesn't have that.
I see your point though.
But most users would rarely if ever need to use that type. Option<T> is how Rust deals with optional/nullable values.