This might be a bonkers thing to want to do (and I can work round it), but: why doesn’t this parse?
(go (letfn [(f [x] x)] (debug "HELLO")))
^---
bindings must be vector of even number of elements at line 49 /Users/nick/[…]
it's a bug: https://clojure.atlassian.net/browse/ASYNC-156
Ah. Actually, I’m doing :require/`:refer` and I get the error as well.
you mean you have the bug in clj, not just in cljs ?
No, I’m getting it in CLJS, but the bug tracker claims that it only happens with the :require-macros clause.
As a complete aside, I’m trying to work out how much it makes sense to create a closure inside a go block - I’m guessing that the function body doesn’t allow visibility.
go macros only transform lexical scope, not across fn boundaries