mikera / magic

Experimental typed JVM Lisp inspired by Clojure
Eclipse Public License 1.0
32 stars 2 forks source link

Equality and hashCode for types #12

Open mikera opened 7 years ago

mikera commented 7 years ago

It seems important to have type equality be consistent with hashCode

This probably means that we can't simply use Type.equals for type equivalence checking. Propose something like Type.equiv(Context, t) for this. We presumably need a Context here because types may depend on other types.