Continuation passing style



(CPS) A semantically clean language with continuations used as an intermediate language for Scheme and the SML/NJ compiler.
[“Rabbit: A Compiler for Scheme”, G.L. Steele, AI-TR-474, MIT (May 1978)].
[“Compiling With Continuations”, A. Appel, Cambridge U Press 1992].

programming
(CPS) A style of programming in which every user function f takes an extra argument c known as a continuation. Whenever f would normally return a result r to its caller, it instead returns the result of applying the continuation to r. The continuation thus represents the whole of the rest of the computation. Some examples:
normal (direct style) –> continuation passing
square x = x * x square x k = k (x*x)
g (square 23) square 23 g
(square 3) + 1 square 3 ( \ s . s+1 )
(1995-04-04)

Tagged:

Read Also:

  • Continuation-school

    noun 1. a school providing extension courses for people who have left school in the elementary grades to go to work.

  • Continuative

    [kuh n-tin-yoo-ey-tiv, -uh-tiv] /kənˈtɪn yuˌeɪ tɪv, -ə tɪv/ adjective 1. tending or serving to continue; causing continuation or prolongation. 2. expressing continuance of thought. 3. Grammar. expressing a following event. In They arrested a suspect, who gave his name as John Doe, the second clause is continuative. 4. Grammar. (of a verbal form or aspect) […]



  • Continuator

    [kuh n-tin-yoo-ey-ter] /kənˈtɪn yuˌeɪ tər/ noun 1. a person or thing that continues. /kənˈtɪnjʊˌeɪtə/ noun 1. a person who continues something, esp the work of someone else

  • Continue

    [kuh n-tin-yoo] /kənˈtɪn yu/ verb (used without object), continued, continuing. 1. to go on after suspension or interruption: The program continued after an intermission. 2. to go on or keep on, as in some course or action; extend: The road continues for three miles. 3. to last or endure: The strike continued for two months. […]



Disclaimer: Continuation passing style definition / meaning should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional. All content on this website is for informational purposes only.