This repository was archived by the owner on Mar 25, 2018. It is now read-only.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 5
This repository was archived by the owner on Mar 25, 2018. It is now read-only.
NG should be idiomatic JavaScript#14
Copy link
Copy link
Open
Description
With ESNext, there's a whole suite of new functionality previously provided by core. Given the opportunity for breaking changes, NG should strive to be idiomatic JavaScript in all regards (EDIT: Language features are not de facto idiomatic JavaScript, but they are likely candidates):
Some obvious candidates:
- All async core APIs should use
async - Deprecate
requirein favor ofimport - Deprecate errbacks
async/awaitfocused documentation- Use of
classforEventEmitter,ReadableStream, etc...
Distant future candidates:
- Extend Streams to be implementations of Observables or AsyncIterators
- Would this mean the Stream API should be deprecated?
- What benefits does the Stream API offer beyond proposed language equivalents
I'm sure there are other new language features that could be added to the list. Also, for the sake of discussion, assume a stable performant finalized implementation exists for all of the above in V8 without a flag.
EDIT:
- s/callbacks/errbacks/
- My desire here is that NG would focus on where it adds value beyond the language features as has always been the philosophical stance of core. For instance, there is no sense wasting effort maintaining an alternative Stream API if it objectively offered no benefit over a language equivalent. That said, neither core APIs nor language APIs should be assumed to be superior by default.
EvanCarroll, lars-reimann, zheung and whmountains
Metadata
Metadata
Assignees
Labels
No labels