On Feb 5, 2007, at 3:54 PM, David Flanagan wrote: > Nikolai Weibull wrote: >> On 2/5/07, David Flanagan <david / davidflanagan.com> wrote: >>> Does anyone (Matz?) know why the (new in 1.9) String.ord method is >>> restricted to one-character Strings? >> Because it only makes sense on a string of (character) length one. > > I have to disagree. It seems to me that String really needs a > method that provides the same behavior as the [] does in 1.8. ord > could be that method, or I could argue for ordAt(). Like ECMAScript's String#charCodeAt() method: http://phrogz.net/ObjJob/method.asp?id=698