|
From: | Noah Lavine |
Subject: | Re: redo-safe-variables and redo-safe-parameters |
Date: | Wed, 27 Mar 2013 17:44:32 -0400 |
Hmm, your really are right in the sense that the common ideom in
computer language design is to type a variable at the declaration of
the variable. So basically a user would then do something like
(for ((~ i) from 0) code ...) to force the intruduction of a redo safe
variable. Hmm yolly good. This might be the better semantic and not
trust so much on some magic. I would still require (set~ i 1) and (~
i) for these variables? With this approach you might want to consider
to change with-redo-varibles e.g.
(with-redo-variables (((~ a) 1)) code ...)
to guard it in a redo safe manner and then
(with-redo-variables ((a 1)) code ...)
as a normal variable and beeing a noop. Error checking can be done via
macros so now everything can be made ontop on a rich syntax system and
r5rs.
Does this sounds like as a better approach?
[Prev in Thread] | Current Thread | [Next in Thread] |