From: Logan Capaldo Date: 2006-06-14T23:56:37+09:00 Subject: Re: A plan for another unicode string hack On Jun 14, 2006, at 10:47 AM, Dae San Hwang wrote: > The reason I'm differentiating between 'size' and 'length' is > because some libraries (like rails) depend on them returning the > byte size of the string. Maybe we can establish a customs that > 'size' for byte size and 'length' for the number of characters. > Same reasoning goes for '[]' and 'slice'. I like these very much. Although the choice between [] and slice seem arbitrary (i.e. you could have swapped their meanings and it would have made just as much sense). #size vs. #length is perfect. and #[] being a Fixnum when their was no encoding but a character when there is is equally brilliant. I salute you sir!