Sanitize is not fool proof (yet) .Sanitize2 seems to work as advertized.
Subject: Sanitize is not fool proof (yet) .Sanitize2 seems to work as advertized.
From: Robert Dodier
Date: Tue, 2 Jan 2007 07:56:34 -0700
On 1/2/07, Michel Van den Bergh <michel.vandenbergh at uhasselt.be> wrote:
> > Are you aware that of the syntax f('x):=... creates a function which
> > does not evaluate x when called?
Hmm, that's interesting. I don't remember seeing that one before.
Looks like the documentation for := can be beefed up; I'll work on it.
> Now I ***know*** one can rewrite this example so that it works (e.g.
> Richard has given a fairly generic way using ?gensym()).
> But this is not my point. The ***user should not have to worry about
> this***. After all this is a ***completely trivial one line program***.
> It should work as expected.
I think we all agree that lexical scope is generally better than dynamic.
We're just working on stuff as our limited time and expertise allows.
All the best,
Robert