One set of Clojure features that its adherents are quite fond of is the threading macros ->
, ->>
, and -->
. Unless you’re familiar with Clojure, you probably don’t know what they do.
You might wonder why we should care. The answer is that Magnar Sveen has implemented them for Elisp in his dash
library and they turn out to be useful. The problem is that most Elispers don’t have an easy way of finding out what they do. Yoo Box has come to our rescue with a nice post that explains the macros and how to use them.
On the one hand, they aren’t very (Common or Emacs) Lisp-like but they can make your source code more readable and perhaps easier to write. I’m still not sure whether I’m a convert but with Sveen’s library and Emacs, I have all the tools I need to experiment with them. Box’s post is well worth a look for any Elisper.