Finding a "safety syntax" for classes

Allen Wirfs-Brock allen at wirfs-brock.com
Fri Mar 23 09:14:21 PDT 2012


On Mar 23, 2012, at 12:42 AM, Claus Reinke wrote:

> - could we think of hoisting a class as hoisting its constructor
>   (the hoisted binding wouldn't be undefined, but shouldn't         be called before initialization, either)?
> 

But its value could be accessed?  It's properties could be accessed?

This would be a new kind of Temporal deal zone.  I don't think we need it.  Can you show a use case  were the current proposal (class X{} scopes just like const X;) doesn't work.

Allen



More information about the es-discuss mailing list