In <[EMAIL PROTECTED]>, 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 -- http://mail.python.org/mailman/listinfo/python-list