[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Shorthand for appending to a table (was Re: 5.2 feature list?)
- From: Enrico Colombini <erix@...>
- Date: Tue, 12 Sep 2006 12:37:44 +0200
David Jones wrote:
I'm always very loath to suggest or support more syntax, but how about
if '#' on its on in an expression inside [] were to mean the length of
the table being indexed. So you could go:
t[#+1] = value
It's pretty clear, and almost syntactically unambiguous.
It seems a sensible approach.
Enrico