[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: should allow empty arrays

This page is part of the web mail archives of SRFI 25 from before July 7th, 2015. The new archives for SRFI 25 contain all messages, not just those from before July 7th, 2015.



Per Bothner writes:

>> The lower bound b and the upper bound e of a dimension are exact
>> integers with |(<= b e)|.
> 
> This should be (<= b (- e 1)) if you believe in APL, which has
> "always" allowed 0-element arrays. So does Common Lisp. I think we
> should too,

We do. The upper bound is excluded from the dimension, same as the
arguments to substring in R5RS.
-- 
Jussi