lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


In message <5C22D28B-2145-4650-ABE9-3E933BAB3070@dnainternet.net>
you wrote:


> 
> "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 (gavin@wra1th.plus.com)
Home page: http://www.wra1th.plus.com/