3 ms·
Honestly I would prefer this to promise. Yeah promises are nice and all but I keep getting myself into projects where promises are nested even worse than callba
by BinaryIdiot 11y ago
Honestly I would prefer this to promise. Yeah promises are nice and all but I keep getting myself into projects where promises are nested even worse than callback soup which ultimately ends up just confusing me because it's not simple and straight forward anymore.
Though I still don't understand why the ECMAScript standards body keeps updating almost only syntax. They've done so little to the standard library that it's maddening. Honestly I would take zero syntax changes / improvements if it meant getting first class, JavaScript standard utilities for, say, dealing with HTTP / HTTPS.
- MrOrelliOReilly 11y agoYou mean like https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API ?
- BinaryIdiot 11y agoNo because that is only for the web. It's not part of the ECMAScript standard. There are packages to make it work in node and hacks to make it work on more browsers. But no standard.