I wasn't trying to say that it was specific to strings, I was saying that 
it is not specific to I/O, which the name would seem to indicate...
and it keeps getting brought up as something that should be used for basic 
mutable string operations.

On Sunday, May 3, 2015 at 3:20:43 PM UTC-4, Tamas Papp wrote:
>
> consider 
>
> let io = IOBuffer() 
>   write(io,rand(10)) 
>   takebuf_array(io) 
> end 
>
> IOBuffer() is not specific to strings at all. 
>
> Best, 
>
> Tamas 
>
> On Sun, May 03 2015, Scott Jones <scott.pa...@gmail.com <javascript:>> 
> wrote: 
>
> > Because you can have binary strings and text strings... there is even a 
> > special literal for binary strings... 
> > b"\xffThis is a binary\x01\string" 
> > "This is a \u307 text string" 
> > 
> > Calling it an IOBuffer makes it sound like it is specific to I/O, not 
> just 
> > strings (binary or text) that you might never do I/O on... 
> > 
> > On Sunday, May 3, 2015 at 2:43:14 PM UTC-4, Kristoffer Carlsson wrote: 
> >> 
> >> Why should it be called StringBuffer when another common use of it is 
> to 
> >> write raw binary data? 
>

Reply via email to