"John J Lee" <jjl at pobox.com> wrote in message news:Pine.LNX.4.58.0509202331440.6289 at alice... > The stricter form where you don't allow 'elif' will get used in more > restricted circumstances, so gives less encouragement for widespread > abuse > of conditional expressions by people who don't like whitespace-based > syntax. I think 'abusiveness' is somewhat in the eye of the beholder here. In any case, without 'elif', one could still chain expressions by writing x = (if a then b else (if c then d else e)) which is even more Lispish. I personally think one () is enough and prefer x = (if a then b elif c then d else e) which is similar to how I wrote such things in C. Elif has the same justification here as with the statement form, where it is also unnecessary but saves nesting levels. Terry J. Reedy
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