lua-users home
lua-l archive

Re: Ternary operator patch

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


Fabien <fleutot+lua@gmail.com> writes:
> Lua's grammar is designed in such a way that the end of an expression
> can almost always(*) be determined without an explicit termination
> keyword.
>
> (*) the only exception I can think of, and which doesn't feel right
> IMO, is the fact that "foo(bar)(gnu)(gnat)" is understood differently
> from "foo(bar)\n(gnu)(gnat)".
Huh? What makes you think that? Aren't you confusing "\n" with ";"?
-- 
David Kastrup

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