By Letter: Non-alphabet | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z
  Email this page to a friend

Continuation passing style

<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 )

< Previous Terms Terms Containing continuation passing style Next Terms >
context switch
Contextually Communicating Sequential Processes
continental drift
Continuation Passing Style
closure conversion
continuous function
Continuous System Modeling Program
Continuous System Simulation Language
continuous wave

Web Standards & Support:

Link to and support Powered by LoadedWeb Web Hosting
Valid XHTML 1.0!Valid CSS! FireFox Extensions