[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Conditional expressions in Python 2.5
- From: Gavin Wraith <gavin@...>
- Date: Tue, 19 Sep 2006 21:44:52 +0100
In message <5C22D28B-2145-4650-ABE9-3E933BAB3070@dnainternet.net>
> "Guido van Rossum eventually chose a surprising syntax:
> x = true_value if condition else false_value"
> I am _NOT_ suggesting Lua to do the same. But bringing this up,
> since it does seem relevant. And weird. ;)
See J.W.Backus "The algebra of functional programs; ... "
LNCS 107 pp 1-43 (1981) for the advantages of this syntax.
There was an article in Byte magazine around the same time,
where the same point was made.
Gavin Wraith (email@example.com)
Home page: http://www.wra1th.plus.com/