On Mon, 15 Sep 2008 01:55:00 pm Leif Walsh wrote: > On Sun, Sep 14, 2008 at 11:36 PM, Eric Smith <eric at trueblade.com> wrote: > > If we really want to change it, I think: > > assert B as S > > is better because S is the string to report; that is, "if B is > > false, report the problem as the string S". > > > > 'else' implies to me what to do if you're not failing the assert, > > which is not the case. > > Doesn't imply that to me. I read it as 'first you assert that B is > true; if not (else), you print S'. > > Personally, I like 'else' better than 'as', because 'as' seems to > contain the notion of assignment. I agree with Leif on both his comments. I don't particularly see the need to change assert, but if it has to change, I'd be perfectly happy with one of "assert B else S" or "assert B except S". -- Steven
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4