lua-users home
lua-l archive

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

On Sat, Sep 11, 2010 at 8:18 AM, Alexander Gladysh <> wrote:
> Do we *really* need a ternary operator in Lua?

Just to be different, how about a pseudo-function
choose(cond,val1,val2) with the appropriate lazy evaluation?

Note that a pseudo-function version of 'assert' would also be useful
for those cases where the error case involves significant work.

steve d.