lua-users home
lua-l archive

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


Grisha wrote:
Not quite true. These languages don't have such 'syntatic sugar' things.
IMHO, if a.b is just a syntatic sugar for a["b"] it must work exactly the
same way.

I don't think that this is something particularly worth
fighting for, especially if it complicates the nice slim parser
at all. They'll never realistically work exactly the same way (a["ice-cream"]) so this is quite an acceptable restriction
on what is simply syntactic sugar.

--Adam
--
Adam D. Moss   . ,,^^   adam@gimp.org   http://www.foxbox.org/   co:3
Consume Less, Live More