On Dec 6, 10:31 am, Meikel Brandmeyer <m...@kotka.de> wrote:
> Hi,
>
> Am 06.12.2011 um 18:31 schrieb Eric in San Diego:
>
> > I'm migrating some code from 1.2 to 1.3, and one of the things I've
> > encountered is that it no longer accepts ^map as a type hint.  It's
> > happy if I use ^clojure.lang.PersistentArrayMap, but that's quite a
> > mouthful.
>
> > Is there a more compact abbreviation I can use? Where are such things
> > documented?
>
> Heretic question: why would you ever need a type hint on IPersistentMap?

I mostly agree here - you probably don't want it typehinted. But
perhaps you're implementing a new collection type that uses a map as
part of its backend - you could plausibly want to use hinted interop
rather than going through RT, to maximize performance for your new
primitive.

-- 
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