Details

Type: Defect

Status: Open

Priority: 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
ClojureScript produces:
5
:x
10
:y
See also: CLJ1043
I realized that this problem is actually only partially solvable as is. We could assign the interleaved keys and values to locals before constructing the map. Unfortunately, that doesn't solve a bigger underlying problem: The reader returns unordered sets and maps.