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

Re: #\a octothorpe syntax vs SRFI 10

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

Aubrey Jaffer wrote, regarding CL/PLT #n(0) shorthand:
> What is the utility of an immutable large zero matrix?  That shorthand
> could be useful in calls to the ARRAY (or LIST->ARRAY) procedure, but
> for literal arrays it is wasted.

Second thought: The shorthand is also useful with an ARRAY-COPY
procedure (with semantics analogous to STRING-COPY and VECTOR-COPY).
These calls would have the same result:

    (make-array #(0) 100 100)

    (array-copy #100x100((0))

The second sequence isn't any shorter, but some folks may find it more
Bradd W. Szonye