Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes, except in a lot of languages, a Promise is the representation of the result of a computation that may already be happening, whereas an IO is a computation that will have data injected into it by some interpreter. But it's a very close comparison, in the sense that both represent contexts that future computation can be appended on. Also, in some languages, the Promise type is truly monadic.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: