Continuation Passing Style

Computing Dictionary

Continuation Passing Style definition


(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].

00:10

00:09

00:08

00:07

00:06

00:05

00:04

00:03

00:02

00:01

Continuation Passing Style is always a great word to know.
So is quincunx. Does it mean:
a calculus or concretion found in the stomach or intestines of certain animals, esp. ruminants, formerly reputed to be an effective remedy for poison.
an arrangement of five objects, as trees, in a square or rectangle, one at each corner and one in the middle.
FOLDOC
Computing Dictionary

continuation passing style definition

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)

The Free On-line Dictionary of Computing, © Denis Howe 2010 http://foldoc.org
Cite This Source
Dictionary.com, LLC. Copyright © 2012. All rights reserved.
  • Please Login or Sign Up to use the Recent Searches feature