FW: Promise.cast and Promise.resolve
forbes at lindesay.co.uk
Tue Jan 28 12:22:27 PST 2014
This accidentally ended up not being forwarded to the list
From: Mark S. Miller [mailto:erights at google.com]
Sent: 28 January 2014 19:52
To: Forbes Lindesay
Subject: Re: Promise.cast and Promise.resolve
That has always been my preference as well. But given the current stage things are in, is it worth fighting to remove it? If you feel it is, please repost your objection to es-discuss or promises-unwrapping.
On Tue, Jan 28, 2014 at 11:44 AM, Forbes Lindesay <forbes at lindesay.co.uk<mailto:forbes at lindesay.co.uk>> wrote:
It seems that the use case of `Promise.resolve` is to allow you to create a Promise for a Promise. It seems to me that we should wait until it observable before we define a method for creating it. I feel like we’re going about things backwards at the moment. We can commit to discussing Promises for Promises later, but if we add this now it's as if we're committing to actually having Promises for Promises.
I'm definitely in favour of removing `Promise.resolve`.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss