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

I'd love for syntactic sugar to mark a function, arrow or otherwise, as returning a promise. Reject and resolve could be standard, hidden, context-specific variables, just like arguments and this.



Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: