Re: where is defalias in the new contrib github repositories

2012-02-07 Thread R Daneel
Many thanks for the detailed discussion! I'm just going with (defn bar [args] (foo args)) - or the cascalog predicate equivalent - for now; I guess I can live without the metadata :) -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this

Re: where is defalias in the new contrib github repositories

2012-02-03 Thread Alex Baranosky
defalias will transfer the metadata of the righthand side's var to the new alias on the left. On Feb 3, 2012 1:25 AM, Sean Corfield seancorfi...@gmail.com wrote: On Wed, Feb 1, 2012 at 10:23 PM, R Daneel maspo...@gmail.com wrote: it says that some of the old contrib.def moved to

Re: where is defalias in the new contrib github repositories

2012-02-03 Thread Stuart Sierra
defalias was always broken. It does not create an alias, it creates a new Var and copies the root binding. This is broken because if you rebind or alter one Var it does not affect the other. -S -- You received this message because you are subscribed to the Google Groups Clojure group. To post

Re: where is defalias in the new contrib github repositories

2012-02-03 Thread Alex Baranosky
Broken, in the sense that its name shouldn't be defalias. If it was called, defcopypmeta or somethingperhaps On Friday, February 3, 2012, Stuart Sierra the.stuart.sie...@gmail.com wrote: defalias was always broken. It does not create an alias, it creates a new Var and copies the root

where is defalias in the new contrib github repositories

2012-02-02 Thread R Daneel
Hi! I'm trying to figure out where to get defalias from in the new contrib repositories: http://dev.clojure.org/display/doc/Clojure+Contrib it says that some of the old contrib.def moved to core.incubator, but apparently not defalias. Can anyone tell me where it is now (or better yet: how

Re: where is defalias in the new contrib github repositories

2012-02-02 Thread Sam Ritchie
Hey Mike, I don't think it's in any of the new modular contrib libraries. I placed it in a utility library called Jackknife that we use from Cascalog: https://github.com/sritchie/jackknife/blob/master/src/jackknife/def.clj#L4 I think the only change I had to make for 1.3 compatibility was

Re: where is defalias in the new contrib github repositories

2012-02-02 Thread Aaron Cohen
Oaaron Thu, Feb 2, 2012 at 5:02 PM, Sam Ritchie sritchi...@gmail.com wrote: Hey Mike, I don't think it's in any of the new modular contrib libraries. I placed it in a utility library called Jackknife that we use from Cascalog:

Re: where is defalias in the new contrib github repositories

2012-02-02 Thread Sean Corfield
On Wed, Feb 1, 2012 at 10:23 PM, R Daneel maspo...@gmail.com wrote: it says that some of the old contrib.def moved to core.incubator, but apparently not defalias.  Can anyone tell me where it is now (or better yet: how to answer that sort of question generically!)? defalias did not get