Re: hash function behaves different with empty vector in clojure and clojurescript

2015-01-06 Thread David Nolen
Fixed in master thanks to Michal Marczyk! David On Tue, Jan 6, 2015 at 3:05 AM, Fluid Dynamics wrote: > On Monday, January 5, 2015 2:27:03 PM UTC-5, Feng Xue wrote: >> >> These days, I was trying to utilize function hash in >> clojure/clojurescript to generate unique id, but it turns out this f

Re: hash function behaves different with empty vector in clojure and clojurescript

2015-01-06 Thread Fluid Dynamics
On Monday, January 5, 2015 2:27:03 PM UTC-5, Feng Xue wrote: > > These days, I was trying to utilize function hash in clojure/clojurescript > to generate unique id, but it turns out this function has very strange > behaviour to empty vector parsed from read-string in cljs with in clj. > > In cloj

hash function behaves different with empty vector in clojure and clojurescript

2015-01-05 Thread Feng Xue
These days, I was trying to utilize function hash in clojure/clojurescript to generate unique id, but it turns out this function has very strange behaviour to empty vector parsed from read-string in cljs with in clj. In clojure, hash function return -2017569654 for empty vector and the one p