7 ms·
He's apparently talking about Clojure's thread macro specifically. If you're not familiar it can be a way to organize code in a straightforward, human-readable
by nerd_stuff 11y ago
He's apparently talking about Clojure's thread macro specifically. If you're not familiar it can be a way to organize code in a straightforward, human-readable, easily debuggable syntax. Ex:
(~> (sha1 in)
(bytes->hex-string)
(bytes-append #".")
(displayln))
In pseudo-Python this would be:
displayln(bytes-append(bytes->hex-string(sha1(in)), #"."))
http://www.greghendershott.com/2013/05/the-threading-macro.html http://www.greghendershott.com/2013/05/the-threading-macro.h...