8 ms·
And if you try to say emoji.length, you'll get an error: No such method 'length' for invocant of type 'Str'. Did you mean any of these: 'codes', 'chars'? Bec
by cjm42 5y ago
And if you try to say emoji.length, you'll get an error:
No such method 'length' for invocant of type 'Str'. Did you mean any of these: 'codes', 'chars'?
Because as the article points out, the "length" of a string is an ambiguous concept these days.