core-async

cassiel 2023-04-24T14:40:22.249769Z

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

rolt 2023-04-24T15:02:14.161109Z

it's a bug: https://clojure.atlassian.net/browse/ASYNC-156

cassiel 2023-04-24T15:32:04.575029Z

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

rolt 2023-04-24T15:34:13.345519Z

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

cassiel 2023-04-24T15:38:03.547649Z

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

cassiel 2023-04-24T15:40:18.605039Z

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.

ghadi 2023-04-24T17:26:53.262909Z

go macros only transform lexical scope, not across fn boundaries