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

Alex Miller made changes -
Field Original Value New Value
Description {code}clojure.core.async> (defrecord Foo [x])
clojure.core.async.Foo{code}

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

Turns record into a map:
{code}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}{code}


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

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

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

Turns record into a map:
{code}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}{code}

Rich Hickey made changes -
Assignee Rich Hickey [ richhickey ]

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: