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

Isn’t Promise a specialized Either? Seems like the async/await syntax could also easily be tweaked for monadic error handling. It allows you to either handle errors as values or as exceptions without forcing you to use blocks and explicit control flow.

Edit: removed ill-thought-out remark.



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

Search: