ClojureScript

Compilation of unordered collections

Details

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

Description

Given:

(defn f [x] (println x) x)

{(f 5) (f 10), (f :x) (f :y)}

Clojure produces:

5
10
:x
:y

{5 10, :x :y}

ClojureScript produces:

5
:x
10
:y

{5 10, :x :y}

Activity

Brandon Bloom made changes -
Field Original Value New Value
Summary emit :map does not interleave side effects of key/value binding expressions Compilation of unordered collections
David Nolen made changes -
Priority Minor [ 4 ] Trivial [ 5 ]

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: