lua-users home
lua-l archive

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


On 12/09/2010 16:52, Pierre Chapuis wrote:
Apparently nobody has it yet, I find it strange. Why not the classical:

a = b ? x : y

It doesn't fit in the style of Lua, more inclined to readable words than symbols. And after all, even languages liking (custom) operators like Scala do it this way:

def min(x: Int, y: Int) = if (x < y) x else y

--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --