On 3/5/14, 10:45 AM, Dicebot wrote:
On Wednesday, 5 March 2014 at 18:39:08 UTC, Andrei Alexandrescu wrote:
Doesn't enable anything. There'd be a ton more juice in a static
foreach; it would enable a lot of great idioms. We should pursue that
instead.
Andrei
Btw, are there any unexpected design difficulties with static foreach?
Or it is just waiting for someone to do the pull request?
The one difficulty is figuring how to allow for all iterations to stay
in the same scope, yet not have duplicate definitions of the iteration
symbol. Probably worth a DIP. Other than that, we're a go.
Andrei