February 05, 2014 Re: std.algorithm missing for_each? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jens Mueller | 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 |
February 05, 2014 Re: std.algorithm missing for_each? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Meta | 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 |
February 05, 2014 Re: std.algorithm missing for_each? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | 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.
|
Copyright © 1999-2021 by the D Language Foundation