On 6/26/06, Daniel Baird <danielbaird / gmail.com> wrote:
> On 6/27/06, Austin Ziegler <halostatue / gmail.com> wrote:
> > On 6/26/06, Izidor Jerebic <ij.rubylist / gmail.com> wrote:
> > > Well, tell me what exactly do I get when this code executes:
> > > result = File.open( "file ) { |f| f.read( 1000 ) }
> > Aside from a syntax error from your missing quote? ;)
> >
> > This would probably be an unencoded String. If you want an encoded
> > String, you would specify it on the File object either during
> > construction or afterwards.
> >
> > The need for ByteArray is nonexistent.
> ..or, to put that another way, when you see "unencoded String", feel free to
> say "ByteArray" in your head.

There's a point where you're right. But there's a point where you're
wrong. My point is simply that we don't need a separate class for
this, because character encodings are *ways* of interpreting a vector
of bytes.

-austin
-- 
Austin Ziegler * halostatue / gmail.com * http://www.halostatue.ca/
               * austin / halostatue.ca * http://www.halostatue.ca/feed/
               * austin / zieglers.ca