Why is `binding-conveyor-fn` private?

187 views
Skip to first unread message

Dimitrios Jim Piliouras

unread,
Aug 21, 2020, 2:21:06 PM8/21/20
to clo...@googlegroups.com
Hi folks,

I don’t get this…

Why would such a neat/important utility private? Every time I submit/schedule a function to some Executor manually (not via `future`
or `agent`), I need to remember to wrap it with `binding-conveyor-fn` (otherwise dynamic bindings won’t get propagated), and every time I have to copy/paste it into whatever project I’m working in.

Shouldn’t it, not only be public, but also come with a doc-string that strongly encourages its use when manually submitting functions to Executors? Am I missing something?

Many thanks in advance...

Kind regards,
Dimitrios

Sean Corfield

unread,
Aug 21, 2020, 2:32:14 PM8/21/20
to Clojure Mailing List
Isn't that what bound-fn and bound-fn* are for?

--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clo...@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+u...@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+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/clojure/A6C14F3B-D725-4B11-9A8F-4C008DC1BB3D%40gmail.com.


--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- https://corfield.org/
World Singles Networks, LLC. -- https://worldsinglesnetworks.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

Dimitrios Jim Piliouras

unread,
Aug 21, 2020, 3:50:13 PM8/21/20
to clojure
Yeah good point, thanks Sean :)

Kind regards

jum...@gmail.com

unread,
Aug 24, 2020, 1:06:17 AM8/24/20
to Clojure
I'm just wondering what's the point of binding-conveyor-fn and why is the implementation so different from `bound-fn` et al.
It seems that the core functions use only binding-conveyor-fn.

Reply all
Reply to author
Forward
0 new messages