DEV Community

Discussion on: Clojure 101 / threading macros

Collapse
 
mxldevs profile image
MxL Devs

Thanks for the explanation. I can see why it could be easier to know the argument first when tracing through a complex sequence of calls.

Now that I think about it, even in natural language, you can have an instruction like "uppercase the first letter of each word" which makes grammatical sense in english, but then once the instructions become more complex like "uppercase the first letter of every other word whose length > 3", it's easier for me to translate the logic in reverse the same way the thread-macro is written so the the argument in question (each word) comes first.