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

I still don't know what specifically you'd want different. What would a better language construct be for an asynchronous operation that enabled a better Fetch API in your eyes?

Fetch returning null on a network error just seems the worst possible design, as you don't get any information about why it failed. Raising an error or rejecting the promise seems an appropriate choice for fetch. It failed to reach any server, so it cannot produce a Response object -- but it can raise an error with failure details.




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

Search: