languages that use imperative iterators, like Python and PHP.
And JS -- JS has mutation and objects. It's not going to swerve toward
Haskell (sorry, Claus).
I never understood your automated dislike of Haskell. But if you are
speaking for tc39 when claiming that JS has no aspirations towards
supporting functional APIs when possible, that would be a serious
disappointment. Personally, I believe you're selling JS short here.
Your point about allocation is on target too.
With a generational collector, short-lived allocation should be free
(provided all fields need to be filled anyway). When using generators
in standard iterators loop patterns, the first copy can be reused in
the second iteration, and so on, so only one extra copy per loop
should be needed.
Claus
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss