On 07/29/2015 04:56 PM, Per Bothner wrote:
>
>
> On 07/29/2015 01:21 PM, Bradley Lucier wrote:
>> Perhaps if I understood the use of such things. We already have
>> scalars, why do we need zero-dimensional arrays?
>
> In APL languages, a scalar is the same as 0-rank array. In Scheme,
> I'd say a zero-dimensional array is the same as a box, in the SRFI-111
> sense.
I've just looked a bit at these APL-type languages. In Nial, for
example, everything is an array. It seems that they consider numbers,
strings, etc., to be zero-dimensional arrays, with the convention that a
zero-dimensional array is a scalar.
I don't think we need that convention here, scheme has perfectly good
non-array objects.
Brad