Null Coalescing Operator in F#?
Yes, using some minor hackery found in this SO answer “Overload operator in F#”. At compiled time the correct overload for an usage of either (‘a Nullable, ‘a) ->’a or (‘a when ‘a:null, ‘a) -> ‘a for a single operator can be inlined. Even (‘a option, ‘a) -> ‘a can be thrown in for more … Read more