halgari/clojure-py — pull request #81 by aschoerk (2012-03-21 14:15:18+00:00)
Title: Some Fixmes concerning set-handling

To support using vectors as set-content, the vectors must implement a hash function. I think generally there should be a hash-function as soon as there is __eq__.
One problem is that vectors-sequences and list-sequences are equal if the same elements in the same sequence are contained (therefore you use ASeq.hash/Seq.eq) , but not vectors and sets.
In java-clojure this is solved by checking Sequential which seems not to be implemented by sets.

I did not know how to solve this in a not principal way, so I inserted a few ugly checks for IPersistentSet.
I know this is ugly, perhaps we should discuss the complete type-structure.