On 2015-10-21 16:13, Shriramana Sharma wrote:
Why is it a mistake? That seems a very sane thing, although somewhat quirky. Since ElementType is a Range primitive, and apparently iterating through a string as a range will produce each semantically meaningful Unicode character rather than each UTF-8 or UTF-16 codepoint, it does make sense to do this.
The short answer is: it's not 100% correct, it's slower and not always needed.
-- /Jacob Carlborg