<< Back to previous view

[ASYNC-4] record literals become ordinary maps Created: 15/Jul/13  Updated: 23/Aug/13

Status: Open
Project: core.async
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Alex Miller Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


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

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


clojure.core.async> (def f (Foo. 4))
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}

Comment by Ghadi Shayban [ 03/Aug/13 2:08 PM ]

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

Comment by David Nolen [ 08/Aug/13 8:35 AM ]

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

Generated at Fri Apr 18 18:21:08 CDT 2014 using JIRA 4.4#649-r158309.