ES4 draft: assert expression

Jeff Dyer jodyer at
Tue Apr 15 12:16:12 PDT 2008

On 4/15/08 11:05 AM, David Flanagan wrote:

> Of course, I get the impression that the true es4 approach (and this is
> a joke, I think) 

Careful what you ask for (or joke about :))

> is to allow blocks of code to be placed in namespaces,
> and to allow the execution of those blocks to be turned on with 'use'.
> Kind of like #ifdef.  With that in place, then the assert expression
> would be syntax sugar for placing the assertion in the the assertions
> namespace, and 'use assertions' would turn on the execution of
> assertions :-)

AS3 has just that. It was written up here:

We (Adobe) wanted to give it a "once around the block" before proposing for
ES. Perhaps it will be ready for ES5.


>      David Flanagan
> _______________________________________________
> Es4-discuss mailing list
> Es4-discuss at

More information about the Es4-discuss mailing list