Let’s deviate from Scala for a bit and talk about clojure. Or lisps in general, I guess. A lot of the “kinda joking
except not really” quips that commonly float around on the internet are about the parentheses, as in how there are so
many of them. For example, if you want to take a number
x and add one, multiply by two, then add 3, the code might
naively look something like this:
Douglas Crockford recently gave a tech talk at work, where he casually endorsed Scala during the Q&A at the end. Given that and the fact that I’ve been hearing increasing mentions of it in the company at large, I figured this week I’d plug a neat feature of Scala and a recent use case where I found it extremely handy.