[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: "Gavin Kistner" <gavin.kistner@...>
- Date: Tue, 12 Sep 2006 10:39:33 -0600
> We also can reuse end keyword for this
> p[end] = value
To me, that implies that the (current) last item in the table has its
value replaced with the new value, not that a new value is appended to
the table.
To make it clear for me, it would have to be something crazy like:
p[end+1] = value
...in which case end would simply be syntactic sugar for 'the length of
the current table'.
I find it unlikely that that will happen. ;)