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.
cpsfy alternatives and related modules
Based on the "Control Flow" category
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of cpsfy or a related project?
cpsfy RecommendationsThere 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.
Recently added cpsfy resources
Be the first to add one!