by galaxyLogic · 2y ago · 0 comments
Why does it need to ask a "handler" to do something, why can't it just call a function that does the "action" for it?
Depending on what your language tracked as an effect, you could make your business-logic always terminate, or perform no allocations, if you had effects for Mutation/GeneralRecursion/Allocation.
But no, I certainly don't understand the function->handler control flow here. It has to be handler->function, otherwise you've got two handlers!