Lisp vs. C++ (not off-topic)

Walter Bright newshound at digitalmars.com
Mon Oct 16 17:18:23 PDT 2006


clayasaurus wrote:
> Walter Bright wrote:
>> Sean Kelly wrote:
>>> I believe that D has a definite opportunity to do better than C++ in 
>>> code clarity and ease of programming, but I'm not sure the library is 
>>> sufficient quiet yet.  The C++ algorithm/iterator model is extremely 
>>> powerful and D's foreach and delegates aren't enough by themselves.  
>>> For example, writing the code snippet above in D would be much more 
>>> like the original C++ version than my rewrite.  For D to be great, I 
>>> think it will need an standard algorithm-oriented library that 
>>> exploits D's unique language features.  DTL seemed a likely 
>>> candidate, but development on it stalled ages ago.  But perhaps it 
>>> contains ideas worth pursuing.  I'll admit it's been so long that 
>>> I've forgotten a lot of the details of how it works.
>>
>> D just needs a foreach_reverse statement.
> 
> old thread on the subject: 
> http://www.digitalmars.com/d/archives/digitalmars/D/17320.html

I know, lots of good ideas in that thread. I was hoping to find a way to 
do it using existing language facilities, but the results are just too 
hackish.



More information about the Digitalmars-d mailing list