News for hackers. Stuff that matters.
Re:Scala's Option monad versus null-conditional operator in C# by merb on Sunday February 21, 2016 @06:25AM (#11144101)
Actually in scala for just getting the city and lowercase it I would write that: article.author.flatMap(_.address.flatMap(_.city.map(_.toLowerCase)))

I know that's by far not as good looking as the c# version, however at the end all comes down to syntactic sugar.

There are no comments on this comment yet.