3 ms·
Strings were revamped in Ruby 1.9 to have more robust support of Unicode and other encodings. One of the side effects is that both the semantics and internal re
by _pius 15y ago
Strings were revamped in Ruby 1.9 to have more robust support of Unicode and other encodings. One of the side effects is that both the semantics and internal representation of Strings changed such that treating a String object as an Enumerable no longer made sense.
There's a good treatment of this here:
http://blog.grayproductions.net/articles/ruby_19s_string http://blog.grayproductions.net/articles/ruby_19s_string
- techtalsky 15y agoThank you very much. I didn't realize that string handling was changed so much in 1.9. This has got to be one of the best string encoding methods in any programming language to date.