lua-users home
lua-l archive

Re: Ternary operator patch

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


On Fri, Sep 10, 2010 at 3:04 AM, Ryota Hirose <hirose.ryota@gmail.com> wrote:
> a = if x == y then good() else bad()
Why not the good old-fashioned a = x == y and good() or bad() ?
steve d.

AltStyle によって変換されたページ (->オリジナル) /