2022-06-12 01:57:02 KipIngram: call/cc stands for call-with-current-continuation, it's from scheme (but a couple other languages have it too) 2022-06-12 07:48:03 Ah - thanks. 2022-06-12 07:50:49 Oh, shoot - I had to get well along in the Wikipedia article on that before it was said in a way I could grok, but that looks powerful. 2022-06-12 07:51:34 It look like a way to revert to a previous state, with a new data item along for the ride? 2022-06-12 07:52:15 All the lambda this / lambda that is kind of greek to me, but this seemed to make some sense: 2022-06-12 07:52:42 "In other words it takes a "snapshot" of the current control context or control state of the program as an object and applies f to it. The continuation object is a first-class value and is represented as a function, with function application as its only operation. When a continuation object is applied to an argument, the existing continuation is eliminated and the applied continuation is restored in its 2022-06-12 07:52:43 place, so that the program flow will continue at the point at which the continuation was captured and the argument of the continuation then becomes the "return value" of the call/cc invocation." 2022-06-12 08:01:52 Seems like an expensive thing, since it involves snapshotting a whole bunch of stuff. 2022-06-12 08:02:35 yea 2022-06-12 08:02:46 it's possibly cheaper in forth 2022-06-12 08:03:26 Well, would you feel the need to copy variables too? Or just the stacks? 2022-06-12 08:04:09 Variables could be anywhere in the dictionary - you'd have to copy the entire system to get them, right? 2022-06-12 08:05:01 variables aren't copied, afaik? 2022-06-12 08:05:23 That would help. 2022-06-12 08:05:53 Seems like it's something that might work well with green threads. 2022-06-12 08:06:52 If an if statement is "if this then do that now," then this seems like "if this then I DID that THEN." 2022-06-12 08:07:02 Sort of a "history re-writing" conditional. 2022-06-12 08:07:52 Maybe it's not really a conditional in and of itself, though. 2022-06-12 08:08:08 but it changes the past in a sense.