Hacker News new | ask | show | jobs
by stormbrew 4684 days ago
I don't think that it's true that promises are a superset of callbacks. Although, again, owing to the particular nature of javascript the implementations may be. A promise is like a go channel that can only be sent to once. A callback has utterly arbitrary behaviour: it can be called many times with many values in many contexts.

Promises and channels are synchronization primitives. Callbacks are not.