3 ms·
I’d recommend exploring some with Scheme. Somewhere between writing code in continuation-passing style, using macros, and using call-with-current-continuation i
by xigency 3y ago
I’d recommend exploring some with Scheme. Somewhere between writing code in continuation-passing style, using macros, and using call-with-current-continuation it should be able to build any of these mechanisms in a clean way. Maybe there’s a prototype for a better construct there. Then it’s on other language developers to support these capabilities as well.
Because looking at all the examples listed in the article, none of them seem like very idioms.
- samsquire 3y agoThanks for your reply. I have looked into shift and reset to the point I think I understand it (and callCC but it actually changes the execution context or can be seen as an AST transformation) (This wiki page helped me understand delimited continuations: https://wiki.haskell.org/Library/CC-delcont https://wiki.haskell.org/Library/CC-delcont ) I am interested in algebraic effects too, but would like to understand them from a assembly point of view and such as exceptions. My Lisp-like experience is only with Clojure, and it is delightful applying methods so trivially. I just find other people's LISP hard to read!