-
@tiagoluchini theyre basically an abstraction over function returns. by default, most languages obey a stack discipline, parameters go into a function and a result comes out, pushing and popping off the stack. in CPS you pass a function to call with the results instead, kind of like a callback
-
@tiagoluchini this was helpful and had good examples: fsharpforfunandprofit.com/posts/computation-expressions-continuations/
-
@tiagoluchini calling a continuation is always a tail call, so when your whole programming style is based on this technique tail call optimization is not a "nice to have" anymore but a real semantic requirement, which i never quite got