Isn't `each` too much of a good thing?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.com
Thu Sep 17 20:19:38 UTC 2020


On 9/17/20 2:50 PM, H. S. Teoh wrote:
> On Thu, Sep 17, 2020 at 02:41:09PM -0400, Andrei Alexandrescu via Digitalmars-d wrote:
>> On 9/17/20 1:56 PM, Avrina wrote:
>>> `reduce` does support static arrays btw.
>>
>> Somebody shoot me.
> 
> BANG.
> 
> :-P
> 
> IMO, we should deprecate static array support on .reduce. (Not that it
> really matters anymore to me; .reduce has the wrong parameter order from
> the days before UFCS, and has been supplanted by .fold.  I sure hope
> .fold isn't stupid enough to accept static arrays...)
Looks like it does: https://run.dlang.io/is/GiStHq



More information about the Digitalmars-d mailing list