reduce -> fold?
Atila Neves via Digitalmars-d
digitalmars-d at puremagic.com
Wed Feb 3 07:18:41 PST 2016
On Wednesday, 3 February 2016 at 00:57:18 UTC, Andrei
Alexandrescu wrote:
> On 2/2/16 3:50 PM, Atila Neves wrote:
>> On Tuesday, 2 February 2016 at 20:02:39 UTC, Andrei
>> Alexandrescu wrote:
>>> On 2/2/16 11:02 AM, Atila Neves wrote:
>>>> On Friday, 29 January 2016 at 12:08:01 UTC, Andrei
>>>> Alexandrescu wrote:
>>>>> As has been discussed before there's been discussion about
>>>>> std.algorithm.reduce taking the "wrong" order of arguments
>>>>> (its
>>>>> definition predates UFCS). I recall the conclusion was
>>>>> there'd be
>>>>> subtle ambiguities if we worked reduce to implement both
>>>>> orders.
>>>>>
>>>>> So the next best solution is to introduce a new name such
>>>>> as the
>>>>> popular "fold", and put them together in the documentation.
>>>>>
>>>>>
>>>>> Thoughts?
>>>>>
>>>>> Andrei
>>>>
>>>> Definitely yes.
>>>
>>> Atila, wanna do the honors? -- Andrei
>>
>> If it's not urgent, sure.
>
> Thanks! And don't forget: in D, everything is top priority. --
> Andrei
Of course it is ;)
I guess this is to be a brand new PR? I've been reading the old
one and the discussions. A lot of unanswered questions there and
I have a new opinion on at least one of them.
Atila
More information about the Digitalmars-d
mailing list