Re: [PATCH] Exorcise "zero-dimensional" arrays (Was: Re: Should array_length() Return NULL)
В списке pgsql-hackers по дате отправления:
| От | Kevin Grittner |
|---|---|
| Тема | Re: [PATCH] Exorcise "zero-dimensional" arrays (Was: Re: Should array_length() Return NULL) |
| Дата | |
| Msg-id | 1365013695.18232.YahooMailNeo@web162901.mail.bf1.yahoo.com обсуждение исходный текст |
| Ответ на | Re: [PATCH] Exorcise "zero-dimensional" arrays (Was: Re: Should array_length() Return NULL) (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-hackers |
Tom Lane <tgl@sss.pgh.pa.us> wrote: > Fortran ... Basic ... actually I'd have thought that zero was a > minority position. Fashions change I guess. When I started programming the top four languages for business programming were COBOL, BASIC, RPG II, and assembly language. (Pascal and C came later, and I never saw much use of Fortran by anyone other than mathematicians.) Except for assembly language, the subscripts for arrays either started with 1 always, or that was the default. Given when it was first developed, it's not too surprising that the SQL standard adopted 1 as the first element of an array. Which is more natural depends on whether you think of the subscript in terms of ordinal positions or offsets from the base address. -- Kevin Grittner EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера