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

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: [PATCH] Exorcise "zero-dimensional" arrays (Was: Re: Should array_length() Return NULL)
Дата
Msg-id 515C5CB8.3030707@dunslane.net
обсуждение исходный текст
Ответ на Re: [PATCH] Exorcise "zero-dimensional" arrays (Was: Re: Should array_length() Return NULL)  (Gavin Flower <GavinFlower@archidevsys.co.nz>)
Список pgsql-hackers
On 04/03/2013 11:34 AM, Gavin Flower 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.

Pascal and Ada are obvious examples.

I'm quite sure there are others, but don't have time to do the research.

cheers

andrew




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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: [sepgsql 2/3] Add db_schema:search permission checks
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: regression test failed when enabling checksum