From: "Hal E. Fulton" Date: 2002-07-09T13:47:17+09:00 Subject: Re: is there a better string.each? ----- Original Message ----- From: "Sean Russell" Newsgroups: comp.lang.ruby To: "ruby-talk ML" Sent: Monday, July 08, 2002 11:05 PM Subject: Re: is there a better string.each? > As I've said before, this is a nice solution, Hal. However, I would expect > that native support for this would be faster, and when one is itterating > over characters, speed can quickly become an issue. I was hoping for > something faster than split(''), which is also not very memory efficient, > creating an arbitrary Array object in the process. Sorry, I guess I missed something. I didn't realize that performance was an issue in this discussion. On a side note: As a rule, I think it's better to write "interim" code in Ruby (and experiment with it) before changing the core. That's not to say that such a change is precluded forever. Hal Fulton