Class double-bind

Brendan Eich brendan at mozilla.org
Thu Mar 5 03:54:52 UTC 2015


Andreas Rossberg wrote:
> For the record, I strongly dislike the function behaviour. Turning a 
> function expression into a declaration silently changes the meaning of 
> internal recursive references, in ways that many people find very 
> surprising. That is an unnecessary pitfall.

Also for the record, I wish I'd done proper let rec, or let/and/in a la 
ML :-).

But I didn't and new things to add to JS cannot start from a blank 
slate. Given this, I agree with your

 > (On the other hand, I do think that it probably was a serious 
mistakes to make class bindings mutable.)

Replying to Allen on this point in a minute.

/be




More information about the es-discuss mailing list