Juerd [EMAIL PROTECTED] writes:
I thought temp replaced local.
temp is dynamic scoping, the same thing as Perl5's local.
Hypotheticals are the ones that turn permanent if everything succeeds
according to plan but revert to the old value if stuff fails -- a
rollback mechanism, basically. I
Brent 'Dax' Royal-Gordon [EMAIL PROTECTED] writes:
Actually, I think you're underestimating the little guys. After
all, if they rolled back *all* of your changes, all they could do
was repeatedly execute the same code!
Except that you can pass the continuation some arguments, possibly
Luke Palmer [EMAIL PROTECTED] writes:
Oh no! Someone doesn't understand continuations! How could this
happen?! :-)
Yes, well, I've only just started reading up on them recently...
A continuation doesn't save data. It's just a closure that closes
over the execution stack
Ah. That helps
Rod Adams wrote:
Well, that's another explanation that jives with my understanding of
them. But I still don't have an idea of when I would actually want
to use them in something I'm writing.
You can use them to implement all sorts of interesting control flow
constructs.
For example, here's
On Tue, Jun 29, 2004 at 05:31:29PM -0600, Luke Palmer wrote:
Oh no! Someone doesn't understand continuations! How could this
happen?! :-)
You need two things to bring the state of the process back to an earlier
state: undo and continuations. People say continuations are like time
On Tue, 29 Jun 2004, Jonadab the Unsightly One wrote:
If we have $foo.undo(), then we will want a multi-step undo to go with
it, probably $foo.undo($n), with $n able to be negative for redo. Are
Definitely! I didn't add that to the point that it wuld have been obvious,
and I wanted to keep
David Storrs wrote:
Well, at least that's a nice simple explanation. Why couldn't anyone
have explained it to me that way before? Unfortunately, it means that
continuations are a lot less useful than I thought they were. :
Actually, I think you're underestimating the little guys. After all, if
Brent 'Dax' Royal-Gordon wrote:
David Storrs wrote:
Well, at least that's a nice simple explanation. Why couldn't anyone
have explained it to me that way before? Unfortunately, it means that
continuations are a lot less useful than I thought they were. :
Actually, I think you're
--- Rod Adams [EMAIL PROTECTED] wrote:
A guess from my current understanding:
You're wanting to play with a database. You take a continuation. You
see
if have a database handle open and good to go, if so you do your
thing.
(can you then dismiss the continuation? do uninvoked
- Original Message -
From: Luke Palmer [EMAIL PROTECTED]
Date: Tuesday, June 29, 2004 7:31 pm
Subject: Re: undo()?
Oh no! Someone doesn't understand continuations! How could this
happen?! :-)
You need two things to bring the state of the process back to an
earlierstate: undo
Austin Hastings wrote:
--- Rod Adams [EMAIL PROTECTED] wrote:
A guess from my current understanding:
You're wanting to play with a database. You take a continuation. You
see
if have a database handle open and good to go, if so you do your
thing.
(can you then dismiss the continuation? do
Michele Dondi wrote:
I must say I've still not read all apocalypses, and OTOH I suspect that
this could be done more or less easily with a custom function (provided
that variables will have a method to keep track of their history, or, more
reasonably, will be *allowed* to have it), but I
Rafael Garcia-Suarez wrote:
Michele Dondi wrote:
I must say I've still not read all apocalypses, and OTOH I suspect that
this could be done more or less easily with a custom function (provided
that variables will have a method to keep track of their history, or, more
reasonably, will be *allowed*
Mark A. Biggar skribis 2004-06-29 9:07 (-0700):
Besides we already have MTOWTDI with local() and hypotheticals.
I thought temp replaced local. If not, how do they differ? (is temp for
lexicals, local for globals (and why would that make sense?))
Juerd
Sorry I did mean temp.
--
Mark Biggar
[EMAIL PROTECTED]
-- Original message --
Mark A. Biggar skribis 2004-06-29 9:07 (-0700):
Besides we already have MTOWTDI with local() and hypotheticals.
I thought temp replaced local. If not, how do they differ? (is temp
On Tue, 29 Jun 2004, Rafael Garcia-Suarez wrote:
Difficulties: define history of a function w.r.t. threads; closures;
and system side-effects (writing to files, locking them etc.)
On Tue, 29 Jun 2004, Mark A. Biggar wrote:
Besides we already have MTOWTDI with local() and hypotheticals.
Michele Dondi [EMAIL PROTECTED] writes:
I must say I've still not read all apocalypses, and OTOH I suspect
that this could be done more or less easily with a custom function
(provided that variables will have a method to keep track of their
history, or, more reasonably, will be *allowed* to
Jonadab the Unsightly One writes:
Michele Dondi [EMAIL PROTECTED] writes:
I must say I've still not read all apocalypses, and OTOH I suspect
that this could be done more or less easily with a custom function
(provided that variables will have a method to keep track of their
history, or,
Michele Dondi writes:
On Tue, 29 Jun 2004, Rafael Garcia-Suarez wrote:
Difficulties: define history of a function w.r.t. threads; closures;
and system side-effects (writing to files, locking them etc.)
On Tue, 29 Jun 2004, Mark A. Biggar wrote:
Besides we already have MTOWTDI
19 matches
Mail list logo