kriskowal / gtor

A General Theory of Reactivity
MIT License
3.03k stars 109 forks source link

Don't propagate the thisArg mistake #2

Closed domenic closed 10 years ago

domenic commented 10 years ago

A paragraph (under "Asynchronous Values") is dedicated to adding the thisArg to promises, and throughout the rest of the document it is assumed you have a thisArg for other primitives and their transformation/consumption functions. I would rather argue that adding thisArg to arrays was a mistake from the time before Function.prototype.bind and especially before arrow functions, and ignore it in all discussions of future technology

kriskowal commented 10 years ago

I think there is still a good argument for closure avoidance since we pay for it in garbage collection.