Re:String types are fine. How about your code?
by ipedrazas on Thursday November 28, 2013 @07:59AM
(#6814318)
what if I have to create strings with non ASCII chars?
Calling ASCII "machine only" is totally wrong. I agree that encoding/decoding is a pain, but we have different string encodings for a reason.
The whole problem is that current string types enable broken unsafe behavior on Unicode ("human only" in your parlance) strings. Current string types are broken because they do not enforce the requirement that string operations are done only on plain ASCII ("machine only") strings.