Re: [PATCH] Exorcise "zero-dimensional" arrays (Was: Re: Should array_length() Return NULL)

Поиск
Список
Период
Сортировка
От Gavin Flower
Тема Re: [PATCH] Exorcise "zero-dimensional" arrays (Was: Re: Should array_length() Return NULL)
Дата
Msg-id 515C7A91.8030700@archidevsys.co.nz
обсуждение
Ответ на Re: [PATCH] Exorcise "zero-dimensional" arrays (Was: Re: Should array_length() Return NULL)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 04/04/13 05:30, Tom Lane wrote:
Zero as the default lower bound is consistent with most languages
(especially the common ones like C, C++, Java, & Python), in fact
I don't remember any language where that is not the case (ignoring
SQL) - and I've written programs in about 20 languages.
Fortran ... Basic ... actually I'd have thought that zero was a
minority position.  Fashions change I guess.
		regards, tom lane
I had forgotten the indexing in BASIC & FORTRAN, I now recall COBOL's TABLE's were equivalent to arrays and they started at one.


Cheers,
Gavin

В списке pgsql-hackers по дате отправления: