Popularity
0.2
Stable
Activity
9.6
Growing
3
1
0

Description

Tiny but powerful goodies for Continuation-Passing-Style (CPS) functions with functional composability backed by category theory foundations.

Functions are the most basic and powerful concept. A whole program can be written as funciton, taking input data and producing output. However, viewing function's return value as the only output is often too limited. For instance, all asynchronous Node API methods rely on the output data returned via callbacks rather than via functions' return values. This pattern is of course the well-known Continuation-Passing Style (CPS)

The famous article by John Backus "Can Programming Be Liberated from the von Neumann Style? A Functional Style and Its Algebra of Programs" advocated to "reduce the code obesity" by building generic hierarchical ways of composing entire programs. The present proposal attempts to provide some way of how such composability can be achieved.

See https://github.com/dmitriz/cpsfy/blob/master/DOCUMENTATION.md for details.

Monthly Downloads: 0
Programming language: JavaScript
Tags: Control Flow     Stream     Functional     Async     Callback     Monad     Functor    

cpsfy alternatives and related modules

Based on the "Control Flow" category

Do you think we are missing an alternative of cpsfy or a related project?

Add another 'Control Flow' Module

cpsfy Recommendations

There are no recommendations yet. Be the first to promote cpsfy!

Have you used cpsfy? Share your experience. Write a short recommendation and cpsfy, you and your project will be promoted on Awesome Node.js.
Recommend cpsfy

Recently added cpsfy resources

Do you know of a usefull tutorial, book or news relevant to cpsfy?
Be the first to add one!