
May 31, 2011
2:38 a.m.
Stephen J. Turnbull wrote:
Greg Ewing writes:
How would ascii behave when mixed with unicode strings? Should it automatically coerce to unicode,
Definitely not! Bytes are not text, and the programmer must say when they want those bytes decoded.
But the proposed 'ascii' type *is* text, though. Whether it's a good idea to auto-coerce I'm not sure, but it's not obviously wrong to do so. -- Greg