Fork me on GitHub
#core-async
<
2023-04-24
>
cassiel14:04:22

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/[…]

cassiel15:04:04

Ah. Actually, I’m doing :require/`:refer` and I get the error as well.

rolt15:04:13

you mean you have the bug in clj, not just in cljs ?

cassiel15:04:03

No, I’m getting it in CLJS, but the bug tracker claims that it only happens with the :require-macros clause.

cassiel15:04:18

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.

ghadi17:04:53

go macros only transform lexical scope, not across fn boundaries