News for hackers. Stuff that matters.
Re:Recombine to avoid naming when naming is hard by nerd_stuff on Monday July 06, 2015 @02:28PM (#9841137)
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.h...

There are no comments on this comment yet.