PerformPromiseAll

Mark S. Miller erights at google.com
Tue Jun 9 16:38:54 UTC 2015


On Tue, Jun 9, 2015 at 9:29 AM, C. Scott Ananian <ecmascript at cscott.net>
wrote:

> Mark: The `prfun` library in fact uses `Promise#timeout(n)` instead of a
> `TimeoutPromise` subclass.  But this is really a language-design question.
> You might as well ask why we have `WeakMap()` as a constructor instead of
> using `Map#weak()` or `weakmapify(map)`.  The fundamental reason is "so you
> can name (and thus test) the type of the object".
>

Do you ever test that the object returned by `Promise#timeout(n)` is
something other than a plain promise?



>
> But this is really a question for the smalltalk folks.  All I know is from
> googling "smalltalk species", for example:
> http://computer-programming-forum.com/3-smalltalk/fbb2ef6357ba0905.htm
>   --scott
>



-- 
    Cheers,
    --MarkM
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150609/600547df/attachment.html>


More information about the es-discuss mailing list