Credit where credit is due. Also add an extra blank line before the
section on ifelse().
This commit is contained in:
parent
b6965cc2ad
commit
63a04aad2b
|
@ -72,7 +72,8 @@ Alternatives
|
|||
to C-derived language, it is hard to understand.
|
||||
|
||||
|
||||
Eric Raymond proposed a variant that doesn't have this problem:
|
||||
David Ascher proposed, and Eric Raymond even implemented, a
|
||||
variant that doesn't have this problem:
|
||||
|
||||
<condition> ? <expression1> ! <expression2>
|
||||
|
||||
|
@ -98,6 +99,7 @@ Alternatives
|
|||
advantage of evaluating strictly from left to right (not that that
|
||||
is a requirement for being Pythonic -- list comprehensions don't).
|
||||
|
||||
|
||||
Many people suggest adding a new builtin instead of extending the
|
||||
syntax of the language, e.g.:
|
||||
|
||||
|
|
Loading…
Reference in New Issue