lua-users home
lua-l archive

Re: Ternary operator patch

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


On 2010年9月12日 18:36:31 +0200, David Kastrup <dak@gnu.org> wrote:
> Pierre Chapuis <catwell@archlinux.us> writes:
>> a = b ? x : y
> If we wanted our languages to resemble line noise, APL would be much
> more popular.
That's the syntax used in C and Ruby, are they not popular?
Now I tend to agree with those who say Lua just doesn't need a ternary
operator, but what I'm saying is that if one is to be implemented it
should have a short syntax.

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