[Issue 10712] Compiletime foreach loop

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 25 03:52:37 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10712


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #2 from bearophile_hugs at eml.cc 2013-07-25 03:52:36 PDT ---
Dupe of Issue 4085 ?

> Arguably, iota accepts "iota(10)", but I (and others) think that is a retarded
> idea, when typing "iota(0, 10)", is just and easy. I think we should avoid
> making the same mistakes.

I requested that to Andrei. And I still think it's a good idea, it comes from
Python iterations:

>>> range(10)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

Discussing iota(10) is off topic here, but if you want you can explain here or
in D.learn.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list