2 ms·
> if string slicing requires anything more than slicing at code point boundaries, you're going to need fast indexing to code points. Why? I can safely slice an
by morelisp 4y ago
> if string slicing requires anything more than slicing at code point boundaries, you're going to need fast indexing to code points.
Why? I can safely slice anywhere in UTF-8 code units, and align to the next (or previous) grapheme cluster just as easily. And this is actually useful if I have some storage limitations, unlike codepoints.