Are Scala "continuations" just a funky syntax for defining and using Callback Functions?

Posted by Alex R on Stack Overflow See other posts from Stack Overflow or by Alex R
Published on 2010-04-23T18:17:57Z Indexed on 2010/04/23 19:23 UTC
Read the original article Hit count: 296

And I mean that in the same sense that a C/Java for is just a funky syntax for a while loop.

I still remember when first learning about the for loop in C, the mental effort that had to go into understanding the execution sequence of the three control expressions relative to the loop statement. Seems to me the same sort of effort has to be applied to understand Continuations (in Scala and I guess probably other languages).

And then there's the obvious follow-up question... if so, then what's the point? It seems like a lot of pain (language complexity, programmer errors, unreadable programs, etc) for no gain.

© Stack Overflow or respective owner

Related posts about scala-2.8

Related posts about language-features