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

In other words, JavaScript doesn't return a Promise/Future/Task<T>, so the defer syntax is necessary. You could get rid of it by simply capturing the callback params and returning them as a value, though your code would end up having a lot of `[0]`'s in them, since most callbacks are of the form (thing, err)


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

Search: