On Thursday, 12 June 2014 at 15:56:17 UTC, simendsjo wrote:
Yeah, not good. Does any sane person use _ as a variable identifier and then reference it? A breaking change would be a special rule so _ can never be used and is allowed to shadow. Of course - this could breakexisting code, so it will never happen :)
Even if it wouldn't break any code, special rules are bad. Enhancing foreach so the loop counter can be omitted is be better IMO. Consistent with for(;;), and avoids a special rule.