My newbie annoyances so far
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Sat Apr 28 02:28:37 EDT 2007
In <59f5btF2k70baU2 at mid.individual.net>, Bjoern Schliessmann wrote:
> Dennis Lee Bieber wrote:
>
>> HP RPL made more sense: b if c [else d] end
>
> Please explain.
>
> HP RPL: b if c [else d] end
> Python: b if c else d
>
> What's the "more sense" here?
The HP RPL leaves even more questions. If the square brackets mean the
``else`` part is optional, what would be the result of the expression if
`c` is `False`?
Hypothetical HP RPL syntax construct in Python::
x = 42 if False end
print x # -> ???
Ciao,
Marc 'BlackJack' Rintsch
More information about the Python-list
mailing list