[Issue 13936] groupBy must be redone
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sun Jan 11 09:25:49 PST 2015
https://issues.dlang.org/show_bug.cgi?id=13936
--- Comment #22 from Andrei Alexandrescu <andrei at erdani.com> ---
(In reply to Dicebot from comment #21)
> And it is not good exactly for a reason mentioned above - seeing function
> named groupBy one would never keep looking for something named like
> groupByAdjacent. Resulting in broken app and frustration.
>
> Going other way around is as trivial as mentioning "use this flag for pure
> equivalence relation" in docs as those who know linear algebra will
> immediately recognize it (and even of they don't, program will still be
> correct, just slower)
groupBy evokes the linear algebra groupBy. groupByAdjacent is special purpose.
We can't hurt everybody for the benefit of very few.
--
More information about the Digitalmars-d-bugs
mailing list