On Wed, Apr 16, 2008 at 1:08 PM, David Flanagan <[EMAIL PROTECTED]> 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 they're disabled. assert (checkIntegrityOfObjectGraph()) Mike _______________________________________________ Es4-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es4-discuss
