On Jan 7, 10:37 am, Rich Hickey <[email protected]> wrote:
> On Jan 7, 1:01 am, "[email protected]" <[email protected]> wrote:
>
> > Looking at how the #^ macro is used in core.clj confuses me even more.
>
> > For example:
>
> > user=> (def #^{:arglist '([name]) :doc "Say hello."} hello (fn hello
> > [name] (println (str "Hello, " name))))
> > #'user/hello
> > user=> (hello "ryan")
> > Hello, ryan
> > nil
>
> > I mean I kind of follow it, but not totally.  Is this macro explained
> > somewhere?
>
> This might help:
>
> http://groups.google.com/group/clojure/msg/919455504c57659e
>
> Rich

Perfect!  Thanks Rich.  I actually read over this thread before but
completely forgot about it (this group has really picked up steam over
the last couple of months).  Next time I'll try searching the group
more, rather than adding more noise.

However, I will reiterate the last threads conclusion.  #^ is not a
macro for with-meta.  That is what I think tripped me up.  I may still
not understand the full power of #^, but as long as I remember it's
not sugar for with-meta than I should at least avoid shooting myself
in the foot.

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