std.algorithm missing for_each?

Meta jared771 at gmail.com
Wed Feb 5 12:40:44 PST 2014


On Wednesday, 5 February 2014 at 18:38:04 UTC, Andrei 
Alexandrescu wrote:
> On 2/5/14, 5:36 AM, Meta wrote:
>> On Wednesday, 5 February 2014 at 13:32:28 UTC, Jens Mueller 
>> wrote:
>>> Meta wrote:
>>>> On Wednesday, 5 February 2014 at 11:17:48 UTC, bearophile 
>>>> wrote:
>>>> >Adding something like each() has being proposed, but so far
>>>> >>no one
>>>> >has implemented it for Phobos.
>>>>
>>>> I implemented it, but the newsgroup reaction was somewhat 
>>>> opposed to
>>>> it.
>>>
>>> Can you point me to that forum thread? I'd like to see the 
>>> arguments
>>> raised.
>>>
>>> Jens
>>
>> http://forum.dlang.org/thread/ovbjcmogezbvsxrwfcol@forum.dlang.org
>
> Also relevant:
>
> http://programmers.stackexchange.com/questions/170939/how-to-make-the-switch-to-c11
>
>
> Andrei

The major problem (i.e., syntactical) of for_each in C++ don't 
apply in D due to  UFCS and how ranges are implemented.


More information about the Digitalmars-d mailing list