Hi,
In message "Re: Unicode roadmap?"
on Mon, 26 Jun 2006 11:37:45 +0900, "Charles O Nutter" <headius / headius.com> writes:
|I know you (matz) want to break as much as possible with the 2.0 release,
|but I still don't see the advantage of marrying the "byte array string" and
|"char string" types in the same class when separate types and behaviors
|would be more logical and break far less.
I still don't see how separate types and behaviors would be more
logical and break far less. For example, if I want to check EXIF
conformance of a jpeg file, I do
def self.exif_file? (filename)
exif_header = "\xff\xd8\xff\xe1"
magic = File.open(filename) {|f| f.read(4) }
magic == exif_header
end
I am not sure what you expect about separation, but I doubt separation
would make above code to "be more logical and break far less".
matz.