Hi there,

Am running Clojure 1.7.0-beta1, ClojureScript 0.0-3196.

Just noticed:
(hash 1) ; 1, ClojureScript
(hash 1 ) ; 1392991556, Clojure
(.hashCode 1) ; 1, Clojure

i.e. numeric hashes aren't consistent between Clojure and ClojureScript.

I'm assuming that's intentional?

This got me wondering: is there an official contract somewhere describing hash 
behaviour similarities we _can_ safely depend on?

Keywords, strings, and collections of these seem to produce matching hashes (?) 
- but is that dependable behaviour or subject to change?

Thanks a lot , cheers! :-)

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to