
Sept. 16, 2008
12:33 a.m.
Joel Bender wrote:
As for the assert syntax, I would reuse the 'raise' keyword rather than 'else':
assert_stmt ::= "assert" <expression> [ "raise" <expression> ]
Which emphasizes that the expression is raised as an exception.
However, it doesn't take the same kind of argument as the "raise" statement, whereas this syntax might suggest that it does. -- Greg