[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Does PIL (3rd edition) repeatedly misuse the length operator on tables and invoke undefined behavior?
- From: polyglot@...
- Date: Thu, 18 Sep 2014 01:27:58 +1000
On 2014-09-18 00:16, Steven Degutis wrote:
An empty table is a still considered a sequence
Hmm. I don't think that's immediately obvious from the definition
of a sequence:
"We use the term sequence to denote a table where the set of all
positive numeric keys is equal to {1..n} for some integer n, which
is called the length of the sequence (see §3.4.6)."
The most natural reading for me is that a sequence has at least
1 as a positive numeric key.