Seebs wrote:
> Or is there something else in the new String that you don't like?
It's as complex as hell. I took the trouble to document about 200
behaviours of String in 1.9, and I still haven't really scratched the
surface. http://github.com/candlerb/string19/blob/master/string19.rb
The scariest bit for me is that a simple expression like
a = b + c
(where b and c are both Strings) can raise exceptions. Writing your
program so that you can be *sure* it won't raise an exception is hard.
Even the same program running on two different computers with the same
version of ruby 1.9 and the same input data may crash on one but not on
the other.
I don't want to have to expend effort working around artefacts of the
language, especially when dealing with binary data.
--
Posted via http://www.ruby-forum.com/.