[squeak-dev] ByteString vs EncodedString vs ByteArray (was Re: leadingChar proposal)

Philippe Marschall philippe.marschall at gmail.com
Fri Aug 28 15:21:46 UTC 2009


2009/8/28 Bert Freudenberg <bert at freudenbergs.de>:
> On 28.08.2009, at 14:29, Philippe Marschall wrote:
>
>> 2009/8/28 Bert Freudenberg <bert at freudenbergs.de>:
>>>
>>> ...
>>> Wouldn't ByteArrays be a better way to efficiently store arrays of bytes?
>>
>> For arrays of bytes yes, for Latin-1 strings no.
>
> But ByteStrings are not really Latin1.

Yes they are. All characters in the Latin1 range are interned and
ByteString is for exactly those 8bit characters.

Cheers
Philippe



More information about the Squeak-dev mailing list