should the default be lower bounds or upper bounds? Peter McGoron (11 Apr 2026 13:42 UTC)
Re: should the default be lower bounds or upper bounds? John Cowan (11 Apr 2026 23:06 UTC)
Re: should the default be lower bounds or upper bounds? Peter McGoron (12 Apr 2026 00:40 UTC)
Re: should the default be lower bounds or upper bounds? Per Bothner (12 Apr 2026 03:01 UTC)
Re: should the default be lower bounds or upper bounds? John Cowan (12 Apr 2026 04:38 UTC)
Re: should the default be lower bounds or upper bounds? John Cowan (12 Apr 2026 01:55 UTC)
Re: should the default be lower bounds or upper bounds? Peter McGoron (12 Apr 2026 03:22 UTC)
Re: should the default be lower bounds or upper bounds? Bradley J Lucier (12 Apr 2026 04:08 UTC)
Re: should the default be lower bounds or upper bounds? John Cowan (12 Apr 2026 04:50 UTC)
Re: should the default be lower bounds or upper bounds? Bradley Lucier (12 Apr 2026 16:00 UTC)
Re: should the default be lower bounds or upper bounds? Peter McGoron (12 Apr 2026 16:14 UTC)

Re: should the default be lower bounds or upper bounds? Per Bothner 12 Apr 2026 03:01 UTC


On 4/11/26 17:35, Peter McGoron wrote:
>  > I think that would be quite surprising. I did a little cross-language
> investigation, and few languages support lower bounds at all despite
> their obvious utility: Fortran, PL/I, ANSI Full Basic, and Algol 60
> and 68.  In the Algols, the lower bound is always required: otherwise
> a single bound is taken to be the upper bound.  (Many Basics only
> allow the lower bound of all dimensions of all arrays to be set
> globally with the "Option Base 0|1" statement.)

APL had/has a similar "index origin" setting.

https://aplwiki.com/wiki/Index_origin
--
	--Per Bothner
xxxxxx@bothner.com   http://per.bothner.com/