Thread overview | |||||
---|---|---|---|---|---|
|
June 02, 2015 reduce! and ufc | ||||
---|---|---|---|---|
| ||||
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 Re: reduce! and ufc | ||||
---|---|---|---|---|
| ||||
Posted in reply to y | 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 Re: reduce! and ufc | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jonathan M Davis | 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 |
Copyright © 1999-2021 by the D Language Foundation