Re: deftypes that implement IPersistentCollection#equiv: argument order

2011-08-04 Thread Alan Malloy
On Aug 3, 5:54 pm, Brian Marick wrote: > In Midje, I have reason to create a type Metaconstant whose instances are > "equal" to a symbol with the same name. Here's the relevant bits of the > definition: > >     (deftype Metaconstant [name storage] >       Object >       (equals [this that] >    

deftypes that implement IPersistentCollection#equiv: argument order

2011-08-03 Thread Brian Marick
In Midje, I have reason to create a type Metaconstant whose instances are "equal" to a symbol with the same name. Here's the relevant bits of the definition: (deftype Metaconstant [name storage] Object (equals [this that] (if (instance? (class this) that)