"fold": a replacement for "reduce"

Simen Kjærås simen.kjaras at gmail.com
Thu Mar 27 10:30:39 PDT 2014


On 2014-03-27 17:21, Meta wrote:
> On Thursday, 27 March 2014 at 16:42:31 UTC, Simen Kjærås wrote:
>> That could very well be argued to be a bug, though.
>>
>> --
>>   Simen
>
> What is the bug? Alias aliases symbols. A function literal is not a
> symbol, but a template instantiation is. Therefore, wrapping a function
> literal in a template instantiation allows it to be aliased. I don't
> think there's any bugger behaviour here.

Ah, true. Call it an enhancement request, then. Wanting to alias a 
function literal like that is so common the language should support it.

--
   Simen


More information about the Digitalmars-d mailing list