Finding a "safety syntax" for classes

Brendan Eich brendan at
Thu Mar 22 19:38:22 PDT 2012

David Herman wrote:
> I do think that class declarations should be hoisted, both in the 
> sense of being in scope for the whole containing block (as with let 
> and function) and in the sense of being initialized before the block 
> begins executing (as with function).

Allen has argued against hoisting, based on the extends clause being an 
evaluated expression.


More information about the es-discuss mailing list