HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by Bahamut | Hacker News Reader
Parent
Full thread
Bahamut
·
Or better, Promise.reject
View on HN
loganfsmyth
·
Both are useful, but I'd hesitate to call it better. What makes you say it is better?
Bahamut
·
It makes explicit that the intention that a promise should be rejected, as opposed to a throw where one might reasonably expect an exception of some sort.
Reply on news.ycombinator.com