Would anyone like to explain if callCC in R 2.7.0 gives anything that on.exit does not already provide? It seems that the exit condition once defined cannot be added to overridden whereas with on.exit multiple on.exit's add additional on.exits rather than being ignored. Is this important?
> Would anyone like to explain if callCC in R 2.7.0 gives > anything that on.exit does not already provide? > > It seems that the exit condition once defined cannot > be added to overridden whereas with on.exit multiple > on.exit's add additional on.exits rather than being ignored. > > Is this important?It facilitates a completely different style of programming - see http://en.wikipedia.org/wiki/Continuation-passing_style -- http://had.co.nz/
callcc is similar to the "yield" keyword in python and c# it lets you define e.g. a generator of lists of numbers. Gabor Grothendieck wrote:> > Would anyone like to explain if callCC in R 2.7.0 gives > anything that on.exit does not already provide? > > It seems that the exit condition once defined cannot > be added to overridden whereas with on.exit multiple > on.exit's add additional on.exits rather than being ignored. > > Is this important? > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > >-- View this message in context: http://www.nabble.com/callCC-in-2.7.0-tp16382578p16395614.html Sent from the R devel mailing list archive at Nabble.com.