Re: global-hierarchy.. private?

2018-04-12 Thread Pedro Iago Carvalho Martins
Hi, thanks for the reply! Yes, the case I had in mind can definitely be done with a separate hierarchy, it's just that I wanted something "global", so my first instinct was to make use of the existing one. After thinking a bit more, I've settled on wrapping isa? so that it defaults to a

Re: global-hierarchy.. private?

2018-04-11 Thread Francis Avila
I'm not certain I know what use case you're getting at. It sounds like you want to take the current state of the global hierarchy and "fork" it into a private hierarchy? Even though the var is private you can still access its value: @#'clojure.core/global-hierarchy (same as (deref (var

global-hierarchy.. private?

2018-04-08 Thread Pedro Iago Carvalho Martins
Ok, this is part of a theme that haunts me and I would like to know if anyone shares my view or has a insteresting point. The #'global-hierarchy in clojure.core is used to enable things such as multi-methods, and the isa? function. Now, we can change a var with alter-var-root, and I see it