Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Almost. Record types are checked as part of Clojure's "=", but not as part of Java's ".equals". See [1] and linked material. This means that Foo{:x 1} and Bar{:x 1} will collide in sets and as map keys (of Clojure or Java varieties). This seems a bit icky to me, but seems to be intentional.

[1] http://dev.clojure.org/jira/browse/CLJ-736



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: