Petition to chime in Issue 1553 - foreach_reverse is allowed for delegates

Dmitry Olshansky dmitry.olsh at gmail.com
Sun Oct 20 06:06:54 PDT 2013


20-Oct-2013 15:29, Denis Shelomovskij пишет:
> `foreach_reverse` is allowed for delegates and do what `foreach` do thus
> causing dangerous confusion. Walter Bright is the only one for some
> obscure reason definitely for not deprecating this feature and
> WONTFIX-ed the issue. And yes, no big red note in docs about it. As
> always, this is even more error-prone for highly templated language like
> D (i.e. one can expect in template `foreach_reverse` will not compile if
> reverse iteration isn't supported).
>
> Petition for all not indifferent to language misfeatures to chime in and
> show in this thread we all are for deprecating it (if we really are).
>

+1


At a times it looks as if Walter is in favor of keeping whatever broken 
junk forever just because it was always broken.

> Issue URL: http://d.puremagic.com/issues/show_bug.cgi?id=1553
>
> Thanks.
>


-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list