Just to be clear, I agree with you that we should not rush to add
special forms where combinators may suffice. However:
Claus Reinke wrote:
We just got rid of the 'this' workarounds, and it cost us a whole
second set of function expressions.
We would have had this problem anyway. When I did JS in a tearing hurry,
I overloaded procedures, methods, constructors, and lambdas on poor old
function. Methods require some kind of `this` binding, whether as in JS
or based on classes as types as in Java. Lambdas want TCP upheld for
`this`, as in ES6 arrows. So in the end we'd have a "second" kind of
functional form, no matter how you skin the cat.
We still haven't solved all of
the 'super' issues. Do you really want to multiply these issues by
introducing yet more implicitly scoped meta-level reference
Agreed.
/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss