New Promise Syntax Proposal

Jonathan Barronville jonathan at
Mon Nov 6 15:57:50 UTC 2017

@T.J. Crowder: Interestingly, in this case, it looks like the
`readline` module’s [`@question(…)`
doesn’t even use the usual Node.js-style callback, which is what
expects …

On Mon, Nov 6, 2017 at 10:43 AM, T.J. Crowder
<tj.crowder at> wrote:
> On Mon, Nov 6, 2017 at 3:39 PM, Jorge Téllez
> <novohispano at> wrote:
>> Yes, I’ll be happy to provide a concrete example.
> Very useful example!
> In that scenario I'd convert to promises *early*, by promisifying the
> `interface.question` function once (using [`util.promisify`][1] or
> roll-your-own if needed), and then using the promisified version throughout
> (which lets you use `async` functions).
> -- T.J. Crowder
> [1]:

- Jonathan


Life is a game and we’re all just high density pixels.

More information about the es-discuss mailing list