Re: Language request: Passing metadata to a fn from its name (in a fn form)

2010-05-24 Thread joshua-choi
I suppose I could, but that would make some things such as using letfn for my rules impossible when the rules are mutually recursive. In any case, it doesn't change the fact that, though functions now have metadata, there is no way to give functions defined letfn that metadata. This would be usefu

Re: Language request: Passing metadata to a fn from its name (in a fn form)

2010-05-24 Thread Sean Devlin
It doesn't sound like your metadata is metadata any more. Should you be proxying AFn instead? On May 24, 3:24 pm, joshua-choi wrote: > I have a language request for the fn special form. > > Functions can now have metadata. This is great, and very useful for > me. > > I'd like to request that now

Language request: Passing metadata to a fn from its name (in a fn form)

2010-05-24 Thread joshua-choi
I have a language request for the fn special form. Functions can now have metadata. This is great, and very useful for me. I'd like to request that now the (fn name …) form pass on any metadata on the name symbol to the function itself: user=> (meta (fn ^{:a 3} name …)) {:a 3} This would ideall