?? operator in F# (but for Options!)

tl;dr ?? in C# is expressive and awesome. You can do the same thing in F# for option values by defining the following operator: let inline (|?) (a: 'a option) b = if a.IsSome then a.Value else b which lets you do this: let someDate = Some DateTime.Now let (noneDate:…