A basic but working implementation of the continuation monad in C++. Can be used by Qt to mitigate the callback hell
Featuring:
- A Monad implementation for
boost::optional,Continuationand some Qt data types. - Some basic monadic fuctions, like
sequence,mapMandliftM. callCCandtryContfor some basic exception handling (asynchonous exceptions!).- A small integraion to wrap Qt signals into a continuation.
- Some examples.
Wikibooks: Continuation passing style
VS2012 GCC 4.7 clang 3.4
- Ivan Čukić: Natural task scheduling using futures and continuations: Youtube
- GitHub: The Functional Template Library