Which is better for Typewriting? Using MaxVisibleGraphemes or a traditional string.sub?

Hello guys, well, it’s not a particularly important question, but could you please tell me which is better for typewriting: MaxVisibleGraphemes or the traditional way, AKA string.sub. Thank you!

It most likely has no difference, though increasing by one each time MaxVisibleGraphemes might be more performant than string.sub()

You should use MaxVisibleGraphemes; string.sub doesn’t account for characters with more than one byte sequence (emojis, other languages, etc). UTF8 is backwards compatible with ASCII (what the string library uses), so it would be better to use it:

2 Likes