Binary data (ByteArray/ByteVector) proposal on public-script-coord

P T Withington ptw at
Fri Nov 6 05:43:56 PST 2009

On 2009-11-05, at 19:42, Maciej Stachowiak wrote:

> My claim is that Data is not much like these things. I believe it is  
> more like String. It happens to be a sequence (of a very specific  
> type), but it's specialized enough to be worth treating differently.  
> Do people often regret that String is not an Array?

Data is like an 8-bit "null encoded" String.  Which makes me wonder if  
you really just want to extend String to allow different encodings.   
But I also regret String not being and Array.  Others must have too,  
because at one point I'm sure there was a proposal to make [] on  
string mean charAt?

More information about the es-discuss mailing list