2 ms·
There's a lot of middle ground between parsing a purely structured format and UI oriented string manipulation. Most of what I have done in my life involved semi
by fauigerzigerk 11y ago
There's a lot of middle ground between parsing a purely structured format and UI oriented string manipulation. Most of what I have done in my life involved semi-structured data with both natural language text and structured parts with fixed lengths. It's extremely inconvenient to have no string functions available when working with byte arrays.
I actually like the C approach a lot in principle, because it doesn't make you choose one or the other.
- mikeash 11y agoMaybe it would be best to have a lot of these things we think of as "string" functions available on arrays, like sub-sequence matching, replacement, trimming, even something like regex. Then strings can be "all that, plus unicode."
- fauigerzigerk 11y agoYes, I think that's a good idea.