4 ms·
Why is this a good thing? Just seems like different syntax to do the same thing. You can theoretically dynamically resolve the different exports asynhronously,
by erikpukinskis 10y ago
Why is this a good thing? Just seems like different syntax to do the same thing.
You can theoretically dynamically resolve the different exports asynhronously, but you could do that by exporting functions before.
ES6 makes me think I am going crazy. Everyone seems so excited to have new sugar and a ton of busywork upgrading code and resolving runtime incompatibilities. I have yet to see any feature that seems like an actual benefit to the conservative working programmer.
Maybe destructuring.
- lhnz 10y agoSmaller file sizes.
- bsou 10y agoeslint also provides static analysis for dependency resolution when using import statements instead of node require calls
- jacobr 10y agoeslint-plugin-import found several bugs for us when we enabled it. Can't recommend it enough. https://github.com/benmosher/eslint-plugin-import https://github.com/benmosher/eslint-plugin-import
- smitherfield 10y agoI'd say constants are pretty big.