[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: length operator [was: table insertion]
- From: "Nick Trout" <nick@...>
- Date: Fri, 5 Nov 2004 17:23:08 -0800
> My opinion is that all proposed operators to get the length of a table
> too cryptic to be used with a language with an intuitive syntax as
> more intuitive length operator, at least for me, is |t|. Of course |s|
> could also be used to get the length of a string.
Why do we need a length operator? And anyway, how do you determine the
length of a table? It's implementation specific. Do you count the number
of key-value pairs, the highest numeric key, the number of numeric keys
Look at the getn docs etc.