You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I don't know how how active this project is still but I've been learning about effects and I think it is a beguiling idea.
Most other libraries are too hard to understand , so I definably appreciate your work.
I think there is a small error in the examples where you forget the pass the continuation k as a argument to resume.
It should be something like this (from my limited understanding).
Hey @wrnrlr , sorry for the late answer.
You're absolutely right! Thanks for the catch. resume always takes the continuation as the first argument and the resume value as the second, while handlers receive their parameters first and the continuation as the last argument. I did this because not all handlers care about the continuation (so most can ignore the last argument), but when resuming the continuation is the one thing you can't forget.
I'm not sure if all of the docs are respecting this, since I remember writting part of the docs before finishing the final API.
I'll review them as soon as I have some time, but you can open a PR with the changes in the /docs folder and I'd be glad to accept it :)
Hi, I don't know how how active this project is still but I've been learning about effects and I think it is a beguiling idea.
Most other libraries are too hard to understand , so I definably appreciate your work.
I think there is a small error in the examples where you forget the pass the continuation
k
as a argument to resume.It should be something like this (from my limited understanding).
The text was updated successfully, but these errors were encountered: