From: Paul Battley Date: 2006-06-15T22:59:37+09:00 Subject: Re: A plan for another unicode string hack On 15/06/06, James Edward Gray II wrote: > On Jun 15, 2006, at 8:13 AM, Patrick Hurley wrote: > > > I have to concur. If we are taking votes, I like the byte_ prefix: > > byte_size, byte_length -- and these will remain important even within > > pure ruby (e.g. when doing block based IO). > > I agree. I don't agree. If you are doing block-based IO with a string, wouldn't the best way be just to set its encoding to raw/unset? It would then behave as a byte-based string. There's no need for a whole suite of byte_-prefixed methods. Paul.