20.10.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).

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

Thanks.

Also the funny thing is according to Andrei [1] about `foreach_reverse` over ranges from February 2010:
"Gone, that is. Walter agreed to remove it."

[1] http://forum.dlang.org/post/hl8345$2b1q$1...@digitalmars.com

--
Денис В. Шеломовский
Denis V. Shelomovskij

Reply via email to