There are often situations where the export of a module is only needed as
an argument to another function, or for its return value.
import _temp1 from'debug';
let debug = _temp1('foo');
import {readFile as _temp2} from'fs';
let readFile = promisify(_temp2);
import _temp3, {Router} from'express';
let app = _temp3();
This juggling could be avoided by allowing usage of the exports without
binding them locally. Something like this:
import {defaultwithdefault('foo') as debug} from'debug';
import {readFile with promisify(readFile) as readFile} from'fs';
import {Router, defaultwithdefault() as app} from'express';
Has this been brought up before? Thoughts?
There are often situations where the export of a module is only needed as
an argument to another function, or for its return value.
```js
import _temp1 from 'debug';
let debug = _temp1('foo');
import {readFile as _temp2} from 'fs';
let readFile = promisify(_temp2);
import _temp3, {Router} from 'express';
let app = _temp3();
```
This juggling could be avoided by allowing usage of the exports without
binding them locally. Something like this:
```js
import {default with default('foo') as debug} from 'debug';
import {readFile with promisify(readFile) as readFile} from 'fs';
import {Router, default with default() as app} from 'express';
```
Has this been brought up before? Thoughts?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150801/f181dae3/attachment.html>
There are often situations where the export of a module is only needed as an argument to another function, or for its return value.
import _temp1 from 'debug'; let debug = _temp1('foo'); import {readFile as _temp2} from 'fs'; let readFile = promisify(_temp2); import _temp3, {Router} from 'express'; let app = _temp3();
This juggling could be avoided by allowing usage of the exports without binding them locally. Something like this:
import {default with default('foo') as debug} from 'debug'; import {readFile with promisify(readFile) as readFile} from 'fs'; import {Router, default with default() as app} from 'express';
Has this been brought up before? Thoughts?