News for hackers. Stuff that matters.
Re:Scala's Option monad versus null-conditional operator in C# by qwtel on Saturday February 20, 2016 @08:19PM (#11142838)
In case anybody is interested, this is how you would do this in clojure:

    (println (some-> article :author :address :city upper-case))
Re:Scala's Option monad versus null-conditional operator in C# by sandisk5 on Monday February 22, 2016 @12:32PM (#11152562)
(some-> article :author :address :city upper-case println)

So that you don't print nil if some-> returns nil.

Re:Scala's Option monad versus null-conditional operator in C# by finishingmove on Sunday February 21, 2016 @04:36AM (#11143909)
Thanks, I'm learning Clojure and things like this make me all warm and fuzzy inside :)
Re:Scala's Option monad versus null-conditional operator in C# by ubercow on Sunday February 21, 2016 @04:36AM (#11143910)
I didn't know about some->, that would have been handy recently.

Cheers.