On Apr 13, 9:12 pm, Rich Hickey <[email protected]> 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 [email protected]
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