2 ms·
Good point! It is my opinion, however, that string types are fine, just not perfect. I should have maybe made that clearer.
by skrebbel 13y ago
Good point!
It is my opinion, however, that string types are fine, just not perfect. I should have maybe made that clearer.
- zokier 13y agoYeah, I was bit confused when your conclusions seem to match the original "strings are broken" posts conclusions. 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.
- ipedrazas 13y agowhat 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.