On Thu, May 17, 2018 at 4:24 PM, kdex <k...@kdex.de> wrote:
> This idea comes from a rather ASCII-centric perspective upon strings and
> definitely break multi-byte characters.
you keep objecting to) is that strings are now iterable, and the iteration
visits *characters* (codepoints), not code units. (Example:
were never ASCII-centric. They were UTF16-centric [with invalid surrogate
If there were a `.map` added, it would presumably visit characters, not
code units, as well; it would be the only reasonable thing to do, both in
light of how strings iterate and just general utility/appropriateness.
-- T.J. Crowder
es-discuss mailing list