Re: character-storage-class
Bradley Lucier 23 Apr 2022 18:04 UTC
On 4/22/22 4:41 AM, Alex Shinn wrote:
> The bigger question is, is this useful? The last dimension would be a
> sequence of characters, i.e. a string, but all of the strings in the
> array would have to consist of the same number of codepoints, a concept
> so restricted it is very close to useless.
In the sample implementation in 64=bi Gambit, a Unicode string with N
codepoints takes 4N bytes, a vector with N characters takes 8N bytes
(more or less).
So this would save some space.
I'm not insisting that an application interpret the last dimension as
strings, but asking whether anyone thinks that applications that work on
arrays of characters (if there are any) should be supported by the SRFI.
Brad