News for hackers. Stuff that matters.
Re:Scala's Option monad versus null-conditional operator in C# by VoiceOfWisdom on Saturday February 20, 2016 @04:25PM (#11142027)
The same can be accomplished in F# for those who want this power in the .net ecosystem

    type Address = { street : string; city : string option }
    type Author = { name : string; email : string; address : Address option }
    type Article = { title : string; content : string; author : Author option }

    let printCity (article : Article) =
        article.author
        |> Option.bind(fun author -> author.address)
        |> Option.bind(fun address -> address.city)
        |> Option.iter(fun city -> printfn "%s" city)
Re:Scala's Option monad versus null-conditional operator in C# by daxfohl on Saturday February 20, 2016 @10:01PM (#11143096)
Better to do with the maybe workflow from Fsharpx:

    maybe {
      let! address = author.address
      let! city = address.city
      printfn %s city
    }