Fixing `Promise.resolve()`

C. Scott Ananian ecmascript at cscott.net
Wed Jun 10 16:16:46 UTC 2015


On Wed, Jun 10, 2015 at 11:46 AM, Domenic Denicola <d at domenic.me> wrote:

>  Regardless of whether or not you agree, that was the original motivation
> for its introduction.
>

https://twitter.com/awbjs/status/535962895532584960 says:

> ES6 final tweaks #8: Smalltalk-like species pattern used in Array methods,
> etc. to determine constructor for derived objects.

https://esdiscuss.org/notes/2014-11-18 discusses species in the context of
`Array.prototype` methods.
And https://esdiscuss.org/notes/2014-11-19 says:

> Allen Wirfs-Brock: Smalltalk uses an abstract above that has a species
> property to determine what to create.


That's all I know of it.  I wasn't there, obviously, and you were.  But
this is the first I've ever heard of using @@species for constructor
signature modification.  It's hard to reconstruct reasoning from meeting
notes and tweets.
  --scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150610/675d4801/attachment.html>


More information about the es-discuss mailing list