Opaque / abstract types ?

Brendan Eich brendan at mozilla.org
Sun Oct 28 11:45:15 PDT 2007

On Oct 28, 2007, at 5:45 AM, David Teller wrote:

>    Hi list,
>  After reading the Outline document, I find myself wondering if  
> there's
> a way to provide a type without any method for the user to manually
> create an inhabitant of that type ?

A class with a private constructor. See http://bugs.ecmascript.org/ 

>  From the Outline, operator "as"

No such operator -- did you mean "cast"?


More information about the Es4-discuss mailing list