<< Back to previous view

[CLJS-288] Compilation of unordered collections Created: 31/May/12  Updated: 25/Mar/15  Resolved: 25/Mar/15

Status: Closed
Project: ClojureScript
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Trivial
Reporter: Brandon Bloom Assignee: Unassigned
Resolution: Completed Votes: 0
Labels: None



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

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

Clojure produces:


{5 10, :x :y}

ClojureScript produces:


{5 10, :x :y}

Comment by Brandon Bloom [ 16/Aug/12 9:28 PM ]

See also: CLJ-1043

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.

Comment by David Nolen [ 31/Aug/12 9:23 AM ]

Is this actually a problem?

Comment by Brandon Bloom [ 23/Sep/12 7:40 PM ]

See discussion at http://dev.clojure.org/jira/browse/CLJ-1043?focusedCommentId=29526#comment-29526

Comment by Brandon Bloom [ 25/Mar/15 8:08 PM ]

See discussion at CLJ-1043

Generated at Wed Jan 17 16:22:16 CST 2018 using JIRA 4.4#649-r158309.