> > I am not entirely happy with this approach though. If everyone starts > to use metadata for various purposes, such type tags may well > disappear by some function replacing the metadata on an object > without preserving the tags that are already there. This is all the > more likely because there is nothing in the standard library to add a > tag to an existing metadata map. All there is is (with-meta ...), > which replaces the metadata map completely. > > Konrad.
Permanently changing the tag of an object after instantiation probably isn't such a safe thing to do anyway. That's where functions like pose-as and applym can come in handy. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---