I'm always interested in anything Zach Tellman does, though I don't always understand it.
I see that he defines a function twice, via (let), of which he says "factored out for greater inlining joy". Does anyone know what he means by that? Can anyone suggest a reason why this was more convenient that writing a macro? And what is the point of the repetition? I feel lost. https://github.com/ztellman/manifold/blob/4e1fff70c5380b33e9cc2f50f03ce16af6d393b4/src/manifold/deferred.clj#L705 (let [;; factored out for greater inlining joy subscribe (fn ([this d x] ( let [d (or d (deferred))] (on-realized x #(this d %) #(error! d %)) d)) ([this d x f] (let [d (or d (deferred))] (on-realized x #(this d % f) #( error! d %)) d)) ([this d x f g] (let [d (or d (deferred))] (on-realized x #(this d % f g) #(error! d %)) d)))] https://github.com/ztellman/manifold/blob/4e1fff70c5380b33e9cc2f50f03ce16af6d393b4/src/manifold/deferred.clj#L799 (let [;; factored out for greater inlining joy subscribe (fn ([this d x] (let [d (or d (deferred))] (on-realized x #(this d %) #(error! d %)) d)) ([this d x f] (let [d (or d (deferred))] (on-realized x #(this d % f) #(error! d %)) d)) ([this d x f g] (let [d (or d (deferred))] (on-realized x #(this d % f g) #(error! d %)) d)))] -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.