ES4 draft: assert expression
mike.shaver at gmail.com
Wed Apr 16 12:56:28 PDT 2008
On Wed, Apr 16, 2008 at 1:08 PM, David Flanagan <david at davidflanagan.com> wrote:
> David Flanagan wrote:
> > If there is no way to turn assertions off, and since the spec requires
> > the parentheses around the assertion, I don't see what is gained by
> > making this a expression instead of a global function. If all this spec
> > offers is standardization of the error reporting information in the
> > exception objects, I'm not sure that's worth it.
> Replying to myself here... Is the reason for an assert expression
> instead of an assert function that not having a method invocation makes
> a difference for performance?
Also, with an expression you don't have to evaluate the arguments when
More information about the Es4-discuss