On Apr 13, 9:12 pm, Rich Hickey <richhic...@gmail.com> wrote: > :tag is applied to source forms to communicate type hints to the > compiler. :type can be used, by convention, to add 'type names' to > runtime data structures that support metadata. The type function will > return the :type metadata if present, else the class, making it a > handy dispatch function. Neither :tag nor :type are used directly by > isa?
What about using maps as structured records, with a special key for the "class". Some people use :tag as the "class" key, some use :type. Should this be stored in metadata, rather than in the map itself? -Stuart Sierra --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---