4 ms·
Most importantly to me, there must be no way to convert from string to exposed bytes (or vice versa) without explicitly specifying an encoding. I guess we agree
by cousin_it 11y ago
Most importantly to me, there must be no way to convert from string to exposed bytes (or vice versa) without explicitly specifying an encoding. I guess we agree on that!
- geocar 11y agoI think we agree as well. I think a lot of trouble showed up when people thought "string" meant "text", and new programmers learned (in a 7-bit world) how to make programs this way. And then unicode. I try to be specific and say "array of bytes" (or sometimes "bytestring") if I mean something that's accessed a byte-at-a-time, but since most text is just copied; sent verbatim to the screen, to the HTTP response, etc, I worry about the `O(N)` access and counting algorithms showing up in languages.