Diferencia entre revisiones de «Continuation-passing style»

De Wikipedia, la enciclopedia libre
Contenido eliminado Contenido añadido
Augus1990 (discusión · contribs.)
Creado al traducir la página «Continuation-passing style»
(Sin diferencias)

Revisión del 10:19 1 may 2016

En la programación funcional, el Continuation-passing style (CPS) es un estilo de programación en el cual el Flujo de control se pasa explícitamente en forma de una Continuación, en poposición al estilo directo, que es el estilo habitual de programar. [1][2][3]

Notes

  1. Sussman, Gerald Jay; Steele, Guy L., Jr. (December 1975). «Scheme: An interpreter for extended lambda calculus». AI Memo 349: 19. «That is, in this continuation-passing programming style, a function always "returns" its result by "sending" it to another function. This is the key idea.» 
  2. Sussman, Gerald Jay; Steele, Guy L., Jr. (December 1998). «Scheme: A Interpreter for Extended Lambda Calculus» (reprint). Higher-Order and Symbolic Computation 11 (4): 405-439. doi:10.1023/A:1010035624696. «We believe that this was the first occurrence of the term "continuation-passing style" in the literature. It has turned out to be an important concept in source code analysis and transformation for compilers and other metaprogramming tools. It has also inspired a set of other "styles" of program expression.» 
  3. Reynolds, John C. (1993). «The Discoveries of Continuations». Lisp and Symbolic Computation 6 (3-4): 233-248. doi:10.1007/bf01019459.