On Mar 9, 7:31 am, Chris Perkins wrote:
> On Mar 8, 6:59 pm, Timothy Baldridge wrote:
>
> > If in a namespace I bind a var:
>
> > (def foo 3)
>
> > And then later on in my program re-bind that var:
>
> > (def foo 1)
>
> > Will all parts of my program instantly see that update? How is it
> > possi
On Mar 9, 12:00 am, Tassilo Horn wrote:
> Alan writes:
>
> Hi Alan,
>
> > And yes, it slows things down a bit, so in 1.3 the default is to not
> > support rebinding (though re-def'ing is still supported).
>
> What do you mean by doesn't support rebinding? Does that mean, that
> things like
>
>
On Mar 8, 6:59 pm, Timothy Baldridge wrote:
> If in a namespace I bind a var:
>
> (def foo 3)
>
> And then later on in my program re-bind that var:
>
> (def foo 1)
>
> Will all parts of my program instantly see that update? How is it
> possible to have any sort performance when we're basically hav
Baishampayan Ghose writes:
Hi!
>> What do you mean by doesn't support rebinding? Does that mean, that
>> things like
>>
>> (def foo false)
>> (binding [foo true] (dostuff))
>> (let [foo true] (dostuff) (println foo))
>
> Not allowed unless you mark `foo' as dynamic. The syntax looks like thi
>> And yes, it slows things down a bit, so in 1.3 the default is to not
>> support rebinding (though re-def'ing is still supported).
>
> What do you mean by doesn't support rebinding? Does that mean, that
> things like
>
> (def foo false)
> (binding [foo true] (dostuff))
> (let [foo true] (dost
Alan writes:
Hi Alan,
> And yes, it slows things down a bit, so in 1.3 the default is to not
> support rebinding (though re-def'ing is still supported).
What do you mean by doesn't support rebinding? Does that mean, that
things like
(def foo false)
(binding [foo true] (dostuff))
(let [f
> Is there a reason you're using a var rather than an atom or a ref?
>
I think I over-simplified what I'm doing a bit. What I'm really doing
is writing a prototype port of Clojure to PyPy. I'm planning to make
symbols resolvable at compile-time. It sounds like in most cases, like
for defs, I should
Typically an atom or a ref is used when you want a variable
On 8 March 2011 23:59, Timothy Baldridge wrote:
> If in a namespace I bind a var:
>
> (def foo 3)
>
> And then later on in my program re-bind that var:
>
> (def foo 1)
>
> Will all parts of my program instantly see that update? How is it
On Mar 8, 3:59 pm, Timothy Baldridge wrote:
> If in a namespace I bind a var:
>
> (def foo 3)
>
> And then later on in my program re-bind that var:
>
> (def foo 1)
>
> Will all parts of my program instantly see that update? How is it
> possible to have any sort performance when we're basically hav
If in a namespace I bind a var:
(def foo 3)
And then later on in my program re-bind that var:
(def foo 1)
Will all parts of my program instantly see that update? How is it
possible to have any sort performance when we're basically having a
namespace function lookup for every single function cal
10 matches
Mail list logo