[Issue 4535] std.range could have a takeWhile!pred(range) function
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Jul 17 09:25:38 PDT 2017
https://issues.dlang.org/show_bug.cgi?id=4535
Andrei Alexandrescu <andrei at erdani.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution|--- |WONTFIX
--- Comment #11 from Andrei Alexandrescu <andrei at erdani.com> ---
I don't think it's wise to add HOFs of which predicates just negate that of
other HOFs. I'm convinced that any programmer can be reasonably expected to
figure negation out without problems, otherwise we're liable to experiments a
la Perl/Ruby "unless" as a negation of "if". My understanding is that the
usefulness of such is still a matter of debate and style differences within the
respective communities.
I'll close this, please reopen if there are qualitatively new arguments.
--
More information about the Digitalmars-d-bugs
mailing list