Re: metadata question

2009-01-07 Thread rzeze...@gmail.com
On Jan 7, 10:37 am, Rich Hickey wrote: > On Jan 7, 1:01 am, "rzeze...@gmail.com" 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, "

Re: metadata question

2009-01-07 Thread Rich Hickey
On Jan 7, 1:01 am, "rzeze...@gmail.com" 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") > He

Re: metadata question

2009-01-07 Thread Christophe Grand
rzeze...@gmail.com a écrit : > 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

Re: metadata question

2009-01-06 Thread rzeze...@gmail.com
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 th

Re: metadata question

2009-01-06 Thread rzeze...@gmail.com
On Jan 6, 11:35 pm, wubbie wrote: > Hi, > Here is the question on differences between with-meta and #^ > Specifically 1) and 2) are different in that 1) has meta info carried > over > to jumping-wubbie, while 2) has not. > What's the rationale behind this? > > user=> (def wubbie {:name "Wubbie"

metadata question

2009-01-06 Thread wubbie
Hi, Here is the question on differences between with-meta and #^ Specifically 1) and 2) are different in that 1) has meta info carried over to jumping-wubbie, while 2) has not. What's the rationale behind this? user=> (def wubbie {:name "Wubbie" :email "wub...@gmail.com"}) #'user/wubbie user=>