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/