How are people using continuations on a larger and smaller scale in Scala?
Are any parts of the Scala standard library written in CPS?
Are there any major performance penalties in using continuations?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’m using this to turn asynchronous functions of the form
def func(...)(followup: Result => Unit): Unitso that instead of writingyou can write
or
(note: the functions are not limited to one argument or just the use of previous results as arguments)
See http://www.tikalk.com/java/blog/asynchronous-functions-actors-and-cps