Completed
Details
Assignee
Michał MarczykMichał MarczykReporter
importimportPriority
Major
Details
Details
Assignee
Michał Marczyk
Michał MarczykReporter
import
importPriority

Created January 5, 2015 at 5:02 PM
Updated January 6, 2015 at 8:55 PM
Resolved January 6, 2015 at 8:55 PM
I get different results when hashing a literal empty vector than when hashing one from read-string, while all the other collections produce the same hash code:
``` clojure
homepage.core> [(hash [2]) (hash (cljs.reader/read-string "[2]"))]
[-1917711765 -1917711765]
homepage.core> [(hash [0]) (hash (cljs.reader/read-string "[0]"))]
[965192274 965192274]
homepage.core> [(hash []) (hash (cljs.reader/read-string "[]"))]
[0 2017569654] ;; <-- this one looks suspicious.
homepage.core> [(hash {}) (hash (cljs.reader/read-string "{}"))]
[-15128758 -15128758]
homepage.core> [(hash #{}) (hash (cljs.reader/read-string "#{}"))]
[0 0]
homepage.core> clojurescript-version
"0.0-2496"
```