Re:Strangest Language Features
by masklinn on Friday December 16, 2011 @04:17AM
(#3360107)
It is pretty nice (and makes Clojure jump up a place or two in the completely unranked list of "languages I really need to learn"). It looks very similar yes, although there's a difference in that `doto` can only returns its `this`.
[ Parent
| on HN ]
Clojure has something even cooler than doto. It's called "thrush operators":
http://clojuredocs.org/clojure_core/clojure.core/-%3E and http://clojuredocs.org/clojure_core/clojure.core/-%3E%3E