Thread overview
reduce! and ufc
Jun 02, 2015
y
Jun 02, 2015
Jonathan M Davis
Jun 02, 2015
y
June 02, 2015
hi,

is there any reason that the
auto reduce(S, R)(S seed, R r) if (isIterable!R);
parameters are not the other way around?

its kind of not very handy when you do large ufc stuff
June 02, 2015
On Tuesday, June 02, 2015 08:57:02 y via Digitalmars-d-learn wrote:
> hi,
>
> is there any reason that the
> auto reduce(S, R)(S seed, R r) if (isIterable!R);
> parameters are not the other way around?
>
> its kind of not very handy when you do large ufc stuff

Because it predates UFCS.

- Jonathan M Davis

June 02, 2015
On Tuesday, 2 June 2015 at 10:04:56 UTC, Jonathan M Davis wrote:
> On Tuesday, June 02, 2015 08:57:02 y via Digitalmars-d-learn wrote:
>> hi,
>>
>> is there any reason that the
>> auto reduce(S, R)(S seed, R r) if (isIterable!R);
>> parameters are not the other way around?
>>
>> its kind of not very handy when you do large ufc stuff
>
> Because it predates UFCS.
>
> - Jonathan M Davis

for further reference:
https://issues.dlang.org/show_bug.cgi?id=10670
https://github.com/D-Programming-Language/phobos/pull/1955