So... add maxCount and maxPos?

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Wed Jan 20 11:50:32 PST 2016


On 01/20/2016 06:29 PM, H. S. Teoh via Digitalmars-d wrote:
> On Wed, Jan 20, 2016 at 12:16:00PM -0500, Andrei Alexandrescu via Digitalmars-d wrote:
>> This is one of those cases in which we were pedantically right to not
>> add them, but their equivalents look like crap.
>>
>> https://github.com/D-Programming-Language/phobos/pull/3942
> [...]
>
> I don't like this.  I'd much rather we rename those functions to be
> something more generic.  After all, minPos is a horrible name when the
> predicate has nothing to do with minimum values.

The predicate always describes an order relative to which to find a minimum.


More information about the Digitalmars-d mailing list