bytestring isn't a datatype, right? Shiro Kawai (07 Oct 2020 10:01 UTC)
Re: bytestring isn't a datatype, right? John Cowan (07 Oct 2020 15:15 UTC)
Re: bytestring isn't a datatype, right? Marc Nieper-Wißkirchen (07 Oct 2020 16:15 UTC)
Re: bytestring isn't a datatype, right? Wolfgang Corcoran-Mathe (07 Oct 2020 16:47 UTC)
Re: bytestring isn't a datatype, right? Wolfgang Corcoran-Mathe (07 Oct 2020 18:21 UTC)
Re: bytestring isn't a datatype, right? Shiro Kawai (07 Oct 2020 21:06 UTC)
Re: bytestring isn't a datatype, right? Lassi Kortela (08 Oct 2020 13:07 UTC)
Re: bytestring isn't a datatype, right? Shiro Kawai (08 Oct 2020 13:13 UTC)
Re: bytestring isn't a datatype, right? Marc Nieper-Wißkirchen (08 Oct 2020 13:24 UTC)
Re: bytestring isn't a datatype, right? John Cowan (10 Oct 2020 07:42 UTC)
Re: bytestring isn't a datatype, right? Shiro Kawai (10 Oct 2020 09:38 UTC)
Re: bytestring isn't a datatype, right? Wolfgang Corcoran-Mathe (10 Oct 2020 15:04 UTC)
Re: bytestring isn't a datatype, right? John Cowan (10 Oct 2020 20:40 UTC)
Re: bytestring isn't a datatype, right? Wolfgang Corcoran-Mathe (10 Oct 2020 23:08 UTC)
Re: bytestring isn't a datatype, right? John Cowan (11 Oct 2020 03:20 UTC)
Re: bytestring isn't a datatype, right? Marc Nieper-Wißkirchen (11 Oct 2020 08:26 UTC)
Re: bytestring isn't a datatype, right? Daphne Preston-Kendal (11 Oct 2020 08:39 UTC)
Re: bytestring isn't a datatype, right? John Cowan (11 Oct 2020 08:42 UTC)
Re: bytestring isn't a datatype, right? Marc Nieper-Wißkirchen (11 Oct 2020 09:10 UTC)
Optional features in SRFIs again, this time with syntax Lassi Kortela (11 Oct 2020 11:38 UTC)
Re: bytestring isn't a datatype, right? Wolfgang Corcoran-Mathe (11 Oct 2020 18:22 UTC)
Re: bytestring isn't a datatype, right? Marc Nieper-Wißkirchen (11 Oct 2020 18:31 UTC)
Re: bytestring isn't a datatype, right? Marc Nieper-Wißkirchen (11 Oct 2020 17:20 UTC)
Re: bytestring isn't a datatype, right? John Cowan (14 Oct 2020 15:20 UTC)
Comparing two vectors Lassi Kortela (08 Oct 2020 13:13 UTC)
Re: Comparing two vectors John Cowan (08 Oct 2020 15:01 UTC)
Re: Comparing two vectors Lassi Kortela (08 Oct 2020 20:42 UTC)

Re: bytestring isn't a datatype, right? Marc Nieper-Wißkirchen 07 Oct 2020 16:15 UTC

Am Mi., 7. Okt. 2020 um 17:15 Uhr schrieb John Cowan <xxxxxx@ccil.org>:
>
>
>
> On Wed, Oct 7, 2020 at 6:01 AM Shiro Kawai <xxxxxx@gmail.com> wrote:
>
>> I understand the whole point of "bytestring" is an alternative external representation.
>
>
> Well, it's twofold: the external representation is one thing and the construction of bytevectors from integers, characters, strings, and existing bytevectors is another.  Where some will write #u8"abc\x1f;def", others will prefer (bytestring "abc" #x1F "def").  These ideas were independently conceived and have been joined together.  I have enlarged the abstract to help with this.
>
>>
>> I don't quite understand why the procedures that don't involve external representation are named 'bytestring-something', as if they deal with 'bytestring' objects.

I have to agree with Shiro that the "bytestring" prefix is a bit
confusing. For example, "bytevector-pad" makes as much sense as
"bytestring-pad".

Only if you want to add a "bytevector-pad" where the pad-byte argument
is restricted to an u8, it makes sense to distinguish the two, I
think.

Actually (but this is a general critique about one direction of this
SRFI), I don't like that ASCII characters are given special treatment.
For legacy code, yes, but not for code that does not yet exist (i.e.
code that uses SRFI 207). Thanks to characters like Ä. Ö. Ü, and ß in
my native language, I have been plagued enough by incompatible
encodings or encodings ignorant of characters outside the American
English that I would like to draw a much clearer line between bytes
and characters.