by rdtsc · 3y ago · 0 comments
print("...".count)
// => 1
And Erlang/Elixir! I guess they are not "cool" enough. But they correctly interpret that as one grapheme cluster. % erl +pc unicode
> string:length("...").
1
(... here is the U+1F926 U+1F3FB U+200D U+2642 U+FE0F emoji)> UPD: Erlang/Elixir seem to be doing the right thing, too.
https://github.com/tonsky/tonsky.me/commit/5fbbb373025be3758...