Share your thoughts in the 2024 State of Clojure Survey!

Welcome! Please see the About page for a little more info on how this works.

0 votes
in core.async by

In clojurescript's version of core.async, the following should print {{hello}}, but it doesn't:

`
(go
(println

(meta
  (<!
    (let [c (chan)]
      (go
        (>! c ^:hello [42]))
      c)))))

`

No such difference is mentioned in https://github.com/clojure/clojurescript/wiki/Differences-from-Clojure.

2 Answers

0 votes
by
_Comment made by: vemv_

A more consise repro: {{(go (js/alert (meta ^{:id 1} [])))}}

This is even worse than originally reported - metadata disappears even within the same go block that creates it.
0 votes
by
Reference: https://clojure.atlassian.net/browse/ASYNC-192 (reported by alex+import)
...