On Wed, Feb 4, 2009 at 6:22 PM, chris <cnuern...@gmail.com> wrote:
>
> "#^#=" doesn't make any sense to me.  Where did this come from?

I already apologized twice, what more do you want from me!?

As penance, I will try to explain.

#^ is a reader macro, documented at http://clojure.org/reader

#= is another reader macro, largely undocumented, but discussed here:
http://groups.google.com/group/clojure/browse_thread/thread/7a24eeb982490a87/d579d881fea5b16d?#d579d881fea5b16d

>> user=> (meta #^#=(array-of String) [])
>> {:tag "[Ljava.lang.String;"}

The whole point of this example was to attach type-hint metadata to a
function arg, so the use of #^ was necessary.  But usually #^ just
takes a literal symbol or map, and I wanted to use the results of a
function call, so I abused #= to do just that.

--Chouser

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

Reply via email to