2 ms·
> they were all weird shit that I expect other people to use libraries for in most cases. The theory with algebraic effects is that you'd use them to implement
by lolinder 3y ago
> they were all weird shit that I expect other people to use libraries for in most cases.
The theory with algebraic effects is that you'd use them to implement those libraries. Most application code won't be implementing new types of effects, but exceptions, generators, async, and who knows what else can be implemented at the library level instead of the language level.
In theory it's a single abstraction that can be implemented once in the language and then all the more complicated abstractions can be swapped out as desired, rather than the current status quo where everyone has to use whatever patterns the language designers chose (which are often rather contentious).
- duped 3y agoMy point is that it's incredibly rare to actually need such abstractions.
- infogulch 3y agoMaybe it's worth investing into foundational research, instead of charging anyone who tries to do something new as frivolously chasing their own boredom.
- TeMPOraL 3y agoBut then, there is a need to make the noise generated by error handling, async, generators, etc. to disappear. Though I doubt it's doable with our current paradigm; we're pushing against the limit of working directly with plaintext, single-source-of-truth code.
- davexunit 3y agoI use delimited continuations all the time if the language exposes an interface for them. Coroutines are great to have around. I also use async/await whenever I have to write JS. Seems this proposal really covers the bases for control flow which is great.