r/functionalprogramming • u/crowdhailer • Jul 16 '26
FP Abstracting effects with continuations
https://crowdhailer.me/2026-07-15/abstracting-effects-with-continuations/
I've spent a while writing this post trying to work out if I want to talk about function coloring. In the end I chose to as neutrally as possible describe what continuations are.
16
Upvotes
4
u/Practical-Bike8119 Jul 16 '26 edited Jul 16 '26
I haven't read the post yet, but I already have some feedback: The AI image in the header will likely put some people off. I have a pretty positive attitude towards generative AI but my instinctive reaction when I saw the image was to think, if it starts like this then the text is likely generated as well. Now imagine those people who passionately hate AI.
3
u/Delta-9- Jul 16 '26 edited Jul 16 '26
Continuation Passing Style is OP for how overlooked it tends to be. It would be awesome if continuations were first-class in more languages, but to my knowledge only some Lisps and Ruby do that; most other languages fake it with higher-order functions. Tbf, HOFs are also OP, but doing CPS with only functions is dangerously close to callback hell.