Please forgive about this defn! macro, it does not seem to play well in
practice.
I now share Konrad's thoughts : I don't know if what he want is feasible
without changes in clojure, or use of clojure non-public APIs.
2009/3/3 Laurent PETIT
> Now that I rethink about it, wouldn't this version u
Now that I rethink about it, wouldn't this version using eval be less than
ideal as far as AOT compilation is concerned ?
2009/3/3 Laurent PETIT
> So there we are with a version of defn, which I called defn! because it is
> even more agressive than defn in its side effects, that could solve your
So there we are with a version of defn, which I called defn! because it is
even more agressive than defn in its side effects, that could solve your
problem :
(defmacro defn!
"Like defn, but first ensures that if name is bound to something (e.g. the
name of a function
in a 'used' or 'required'
Konrad Hinsen a écrit :
> On 03.03.2009, at 00:53, Laurent PETIT wrote:
>
>
>> I'm able to do that from the REPL when done one by one :
>> (clojure.core/ns-unmap *ns* (quote filter))
>> (clojure.core/defn filter [] "oh my!")
>>
>> thus correctly redefining the binding of filter for the rest of
On 03.03.2009, at 00:53, Laurent PETIT wrote:
> I'm able to do that from the REPL when done one by one :
> (clojure.core/ns-unmap *ns* (quote filter))
> (clojure.core/defn filter [] "oh my!")
>
> thus correctly redefining the binding of filter for the rest of use
> by the ns
>
> But I can't man
Konrad,
I'm able to do that from the REPL when done one by one :
(clojure.core/ns-unmap *ns* (quote filter))
(clojure.core/defn filter [] "oh my!")
thus correctly redefining the binding of filter for the rest of use by the
ns
But I can't manage to get it work from a macro (indeed not even when
d
On 02/03/2009, at 7:23 PM, Konrad Hinsen wrote:
> For namespaces other than clojure.core, an acceptable solution is to
> use the :only keyword in the :use clause of the ns macro. This just
> requires a bit more work in typing, but I don't see any other
> potential difficulty. I am currently conv
On Mar 2, 2009, at 18:35, srolls wrote:
> I think :exclude is what you want
>
> (ns my-ns
> (:refer-clojure :exclude [get replace]))
Not quite, as exclude requires me to know what I want exclude.
What I want is "exclude everything that wasn't there in version X.Y".
Konrad.
--~--~-~-
On Mon, Mar 2, 2009 at 12:53 AM, Konrad Hinsen wrote:
>
> Over the last weeks, two additions to clojure.core broke several of
> my library modules by introducing names into the clojure.core
> namespace that I was using in my libraries as well. While this kind
> of problem is acceptable in a pre-re
Over the last weeks, two additions to clojure.core broke several of
my library modules by introducing names into the clojure.core
namespace that I was using in my libraries as well. While this kind
of problem is acceptable in a pre-release development period, I don't
expect it to go away w
10 matches
Mail list logo