[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: x="abc":upper() v.s. x=("abc"):upper() patch
- From: David Manura <dm.lua@...>
- Date: Sat, 15 Aug 2009 21:50:14 -0400
On Sat, Aug 15, 2009 at 7:39 PM, delbu9c1 wrote:
> On Sat, Aug 15, 2009 at 7:34 PM, delbu9c1 wrote:
>> It seems like you're advocating that the following be ambiguous, if I understand you correctly.
>>
>> Foo = bar
>> "baz":quux()
Yes, that would give an "ambiguous syntax" error under the new
proposal, whereas currently it is interpreted as Foo =
bar("baz"):quux(); . Alternatives without semicolons include
Foo = bar "baz"
:quux()
Some discussion on semicolons was in [4].
[4] http://lua-users.org/lists/lua-l/2009-02/msg00360.html