3 ms·
Can you name a single language that does that? I can't think of one.
by greglindahl 10y ago
Can you name a single language that does that? I can't think of one.
- int_19h 10y agoNone of the mainstream ones that I can think of. Which is really unfortunate, not the least because the defaults are all over the place - usually it's either bytes (when strings are UTF-8) or code units (when strings are UTF-16 - note, code units, not code points, so surrogate pairs count as 2!). Occasionally it's genuine code points, as in Python. Which, I think, goes to show why it's such a mess.