Hacker News new | past | comments | ask | show | jobs | submit login

> Except the composition problem only manifests itself badly when your “red function” is callback-based. Re-read the blog post and you'll see that the fundamental problem is that red functions are unwieldy (which it really is when you have callbacks, but not when you have async/await).

Not only; the problem also manifests when you interoperate with blue functions, for example because they are provided to you by libraries.




But even Go have a red/blue distinction (functions that return an error and the ones that don't), and in practice it's so fine it never occurred to you that it was in fact a red/blue split!

The real problem came in JavaScript with the callback hell, everything else is a minor issue that nobody really notice.




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

Search: