So... add maxCount and maxPos?

H. S. Teoh via Digitalmars-d digitalmars-d at puremagic.com
Wed Jan 20 09:29:28 PST 2016


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. What about extremumPos?
(Though that's rather ugly to type.)


T

-- 
People demand freedom of speech to make up for the freedom of thought which they avoid. -- Soren Aabye Kierkegaard (1813-1855)


More information about the Digitalmars-d mailing list