[CLJS-288] Compilation of unordered collections Created: 31/May/12 Updated: 23/Sep/12 |
|
| Status: | Open |
| Project: | ClojureScript |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Defect | Priority: | Trivial |
| Reporter: | Brandon Bloom | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Given: (defn f [x] (println x) x) {(f 5) (f 10), (f :x) (f :y)}Clojure produces: 5 ClojureScript produces: 5 |
| Comments |
| 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 |