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.
> 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
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss