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

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Gavin Flower <GavinFlower(at)archidevsys(dot)co(dot)nz>
Cc: Florian Pflug <fgp(at)phlo(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Brendan Jurd <direvus(at)gmail(dot)com>, Josh Berkus <josh(at)agliodbs(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [PATCH] Exorcise "zero-dimensional" arrays (Was: Re: Should array_length() Return NULL)
Date: 2013-04-03 16:45:44
Message-ID: 515C5CB8.3030707@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Janes 2013-04-03 16:48:54 Re: regression test failed when enabling checksum
Previous Message Robert Haas 2013-04-03 16:43:14 Re: [sepgsql 2/3] Add db_schema:search permission checks