On Oct 11, 2011, at 8:53 PM, Brian Marick wrote:

> 
> On Oct 11, 2011, at 7:48 PM, Stuart Sierra wrote:
> 
>> I suppose you could iterate over all known Vars and construct a map from fns 
>> to the Vars that contain them. Then, given a fn, you can look up the Var and 
>> get its metadata. It would break if anyone redefines or binds the Var, of 
>> course.
> 
> How about putting the information back on the function? Who would be harmed 
> by reverting back to old behavior?

Much of the information in var metadata is just not applicable to the function 
— and, in the presence of binding and with-redefs, you want to be sure to keep 
function and var metadata distinct.  IIRC, the application of function/var 
metadata changed when functions became eligible for "updating" via with-meta.

That said, it seems like there are some bits of var metadata that should 
migrate to the underlying function.  Probably worth filing a bug for it.

- Chas

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
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