Hi,

may I throw in ye olde hierarchies?

(deftype MySpecialType)

(extend-type MySpecialType
  Foo
  ...
  Bar
  ...)

(derive MySpecialType ::FooBar)

(defn instance-of?
  [c x]
  (isa? (type x) c))

(instance-of? (MySpecialType.) ::FooBar) => true

Maybe a bit clumsy, but to me it feels cleaner (whatever that may mean) and 
it has the added benefit of being dynamically modifyable during development.

Sincerely
Meikel
 

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to