clj-commons / potemkin

some ideas which are almost good
577 stars 53 forks source link

Add support for metadata to def-map-type #18

Closed ghost closed 10 years ago

joegallo commented 10 years ago

This bit us over on https://github.com/dakrone/clj-http/issues/193 which in turn references https://github.com/marick/Midje/issues/266.

The exact issue brought up there was for IObj, but in looking into this a bit, I saw that there's more than just that:

> (clojure.set/difference (supers (type {})) (supers (type (header-map))))
#{clojure.lang.APersistentMap clojure.lang.AFn java.io.Serializable 
clojure.lang.IObj clojure.lang.IEditableCollection clojure.lang.IHashEq 
clojure.lang.IMeta}