core.async

record literals become ordinary maps

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

(Copied from GitHub issue #13 - https://github.com/clojure/core.async/issues/13)

clojure.core.async> (defrecord Foo [x])
clojure.core.async.Foo

Works:

clojure.core.async> (def f (Foo. 4))
#'clojure.core.async/f
clojure.core.async> (<!! (go f))
#clojure.core.async.Foo{:x 4}

Turns record into a map:

clojure.core.async> #clojure.core.async.Foo{:x 4}
#clojure.core.async.Foo{:x 4}
clojure.core.async> (<!! (go #clojure.core.async.Foo{:x 4}))
{:x 4}

Activity

Hide
Ghadi Shayban added a comment -

0c6e663493 contains a fix on the Clojure side, would appreciate help porting to cljs.

Show
Ghadi Shayban added a comment - 0c6e663493 contains a fix on the Clojure side, would appreciate help porting to cljs.
Hide
David Nolen added a comment -

I think on the ClojureScript we'll have to query the analyzer to know if we have a record or not.

Show
David Nolen added a comment - I think on the ClojureScript we'll have to query the analyzer to know if we have a record or not.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: