DEV Community

Discussion on: Dealing with Nothing in C# - Nullable

Collapse
 
jeikabu profile image
jeikabu • Edited

Someone commented in your previous post about changes related to null that are coming in C# 8.0.

Includes the ability to have nullable reference types (in addition to value types): github.com/dotnet/csharplang/wiki/...

As someone who fell in love with option in F#, I'm really looking forward to this.

Good discussion of the nullable types, especially how they work with the null coalescing operator.
Might be worth mentioning null-conditional (?. and ?[]) as well. My personal favorite use-case is calling events.