From: Austin Ziegler Date: 2006-06-29T07:02:01+09:00 Subject: Re: Unicode roadmap? On 6/28/06, Jim Weirich wrote: > Charles O Nutter wrote: > > The dual-purposing of String ops for both bytes > > and chunks is very worrisome since it's bound to happen > > that chunk operations get incorrectly used for byte > > operations when sizeof(chunk) != sizeof(byte). > I also have this concern. > > Here's radical idea. Perhaps it is time to deprecate the str[*arg] > operation in favor of str.char(*arg) and str.byte(*arg) like operations, > making it explicit which operation is to be used. It will break a lot > of code, but then, changing the semantics of [] from byte oriented to > character oriented operations will probably *silently* break a lot of > code as well. All things considered, I would prefer noisy breaking. > > Like I said, its a radical idea. I can't say that I *like* it; it's *clean* to say str[0..5], but I can't say it's a bad idea either. Just radical. -austin -- Austin Ziegler * halostatue@gmail.com * http://www.halostatue.ca/ * austin@halostatue.ca * http://www.halostatue.ca/feed/ * austin@zieglers.ca