delimited-continuations

What are Scala continuations and why use them?

本小妞迷上赌 提交于 2019-11-26 12:49:53
问题 I just finished Programming in Scala , and I\'ve been looking into the changes between Scala 2.7 and 2.8. The one that seems to be the most important is the continuations plugin, but I don\'t understand what it\'s useful for or how it works. I\'ve seen that it\'s good for asynchronous I/O, but I haven\'t been able to find out why. Some of the more popular resources on the subject are these: Delimited continuations and Scala Goto in Scala A Taste of 2.8: Continuations Delimited Continuations