Does D have too many features?

SomeDude lovelydear at mailmetrash.com
Mon Apr 30 13:32:48 PDT 2012


On Monday, 30 April 2012 at 20:04:41 UTC, Timon Gehr wrote:
> On 04/30/2012 09:50 PM, Walter Bright wrote:
>>
>> I'm surprised nobody has mentioned opApply. That was a good 
>> idea at the
>> time, but Ranges are a superior solution. I'd like to see new 
>> code not
>> use opApply. It's a dead end, though it'll still be supported 
>> for a long
>> time.
>>
>
> foreach has been mentioned. I don't think ranges are 
> unequivocally a superior solution. opApply is more powerful for 
> fancy iteration tasks, such as parallel foreach.

Yes, I feel they are complementary. Ranges are cool for 
Python-style or functional-style programming, foreach and opApply 
reflects more traditional iteration.
I'm pretty sure that usage over time will show that they both 
have their use.


More information about the Digitalmars-d mailing list