From: Brian Candler Date: 2009-08-13T18:14:20+09:00 Subject: Re: 1.9 String and M17N documentation Gregory Brown wrote: > A U-Turn is very unlikely to happen, but I imagine Matz will be > receptive for polishing things around the edges. I have put a few ideas in a document 'alternatives.markdown' at the same location. The other possibility which may make sense is to transcode automatically. For example, in s3 = s1 + s2 then s2 is transcoded to s1's encoding, and the result s3 always has s1's encoding. That could actually be useful in helping to combine strings from different sources. All the compatibility rules would vanish, and rather than raising exceptions, ruby would just "do the right thing". Transcoding to BINARY/ASCII-8BIT would be a null operation, so building a binary string would be safe too. This isn't a total U-turn, but it would be quite a major shift and I suspect too big for 1.9.x. -- Posted via http://www.ruby-forum.com/.