[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: t[] = 'syntactic sugar'
- From: steve donovan <steve.j.donovan@...>
- Date: Thu, 19 Jan 2012 13:58:53 +0200
On Thu, Jan 19, 2012 at 1:24 PM, Egil Hjelmeland
<privat@egil-hjelmeland.no> wrote:
> t[#] means t[#t]
> t[# -1 ] means t[#t -1]
> t[# + 1 ] = 'syntactic sugar'
That feels better, and is more general than t[]. Although I suppose
it becomes a special case in the grammar, an implicit # operator, and
I know most Lua followers are reluctant to complicate the syntax
further.
steve d.