Lisp vs. C++ (not off-topic)
clayasaurus
clayasaurus at gmail.com
Thu Oct 12 06:02:33 PDT 2006
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
More information about the Digitalmars-d
mailing list