Reduce parameters [was pi program]

John Colvin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Sep 26 03:46:51 PDT 2015


On Saturday, 26 September 2015 at 06:28:22 UTC, Russel Winder 
wrote:
> On Fri, 2015-09-25 at 12:54 +0000, John Colvin via 
> Digitalmars-d-learn wrote:
>> 
> […]
>> I vastly prefer the UFCS version, but unfortunately reduce has 
>> its arguments the wrong way around for that if you use the 
>> version that takes a seed...
>
> In which case the reduce parameter list is wrong, this is a bug 
> and should be fixed. Is there a bug report for this I can 
> connect with?

It's been argued about a lot.

https://issues.dlang.org/show_bug.cgi?id=8755
https://github.com/D-Programming-Language/phobos/pull/861
https://github.com/D-Programming-Language/phobos/pull/1955
https://github.com/D-Programming-Language/phobos/pull/2033


More information about the Digitalmars-d-learn mailing list