lua-users home
lua-l archive

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


On Fri, Sep 10, 2010 at 06:01:28PM -0300, Roberto Ierusalimschy wrote:
> On the other hand, a syntax with "end" is cumbersome.

I find it nice instead, it just looks like if the if-then-else-end
construct had been promoted from the statement class to the expression's one.

Maybe I'm too biased by functional languages, but I very often type, by
mistake, "z = if b then x else y end"...

Cheers, and +1 for that "feature".
-- 
Enrico Tassi