"tuple unpacking" with zip?

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Wed Oct 21 10:35:21 PDT 2015


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


More information about the Digitalmars-d mailing list