DEV Community

Discussion on: Why null in C# is so bad

Collapse
 
thebuzzsaw profile image
Kelly Brown

Structs are a different story. Why would I use Option<int> when Nullable<int> (or int?) is an option? It clearly expresses that it may not return a value.

Collapse
 
buinauskas profile image
Evaldas Buinauskas

LanguageExt will force you to deal with null values, int? won't. Also lots of extension methods to deal with optional types.