[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua has reached a local optimum
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 5 Jul 2018 13:03:38 -0300
> 2018-07-05 14:52 GMT+02:00 szbnwer@gmail.com <szbnwer@gmail.com>:
>
> > 'str':fun() and {}:fun() would be nice to see. i
> > can only remember that the reasoning against this was 'cuz the refman
> > says so' :D (probably that was you, Dirk, you are the local refman
> > guru (that i like to see! :) ))
>
> I can't find the thread but the clincher for me was a demonstration
> (not by myself) that a syntax ambiguity could arise.
A syntax ambiguity is already there; these cases would make it worse:
-- already ambiguous:
a = b + c
('str'):fun()
-- new ambiguity:
a = b + c
'str':fun()
-- new ambiguity:
a = b + c
{}:fun()
-- Roberto