On Sep 4, 12:54 am, Meikel Brandmeyer <m...@kotka.de> wrote:
> Hi,
>
> Am 03.09.2011 um 23:12 schrieb Alan Malloy:
>
> > Huh, interesting. I assumed ^:foo meta syntax was new to 1.3, and
> > wouldn't compile at all in 1.2. But now I see that in 1.2 it's
> > equivalent to ^{:tag :foo} - not useful, but not damaging either. I
> > guess I'll start using ^:dynamic myself.
>
> #^something was equivalent to #^{:tag something}. Back when we did types not 
> with defrecord but with (with-meta {:foo :bar} {:tag ::my-type}) it actually 
> was useful. With the advent of defrecord this need for this diminished. So, 
> it at least was useful.

Well, ^something still is equivalent to ^{:tag something}, which as I
understand it is useful for compiler typehinting. I just was unaware
that this worked for keywords as well as symbols, though when you
point out that tags were used for custom types this makes more sense.

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
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

Reply via email to