(no) fast boolean evaluation ?
Neil Cerutti
horpner at yahoo.com
Fri Aug 3 10:32:32 EDT 2007
On 2007-08-03, Steven D'Aprano <steve at REMOVE.THIS.cybersource.com.au> wrote:
> But that's specific to the syntax of the language. You could,
> if you choose, design a language where elif was unnecessary:
>
> if condition:
> pass
> else if another_condition:
> pass
>
> What advantage is there to "elif", apart from it needing three
> fewer characters to type?
It's a great boon to the authors of auto-indenting text editors.
--
Neil Cerutti
More information about the Python-list
mailing list