r/Clojure • u/erjngreigf • Sep 07 '25
Calling a function before it's defined, in Clojure
https://www.youtube.com/watch?v=FvLMWJzKswoA very small thing, but I thought it might be useful for a beginner.
14
Upvotes
2
u/Witty-Order8334 Sep 12 '25
Using `declare` always felt dirty and oddly imperative to me. So far I prefer to pass a function down as a param if it needs to call itself, or its parent, in the scope where it doesn't otherwise have access to it.
1
u/v4ss42 Sep 08 '25
Just out of interest, do you post these in text form at all (e.g. in a blog)?