Lisp vs. C++ (not off-topic)
James Dunne
james.jdunne at gmail.com
Mon Oct 16 14:45:05 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
Thanks Clay. I was about to post an "I told you so..." post, but you
saved us all from that fate.
Wait...
--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/MU/S d-pu s:+ a-->? C++++$ UL+++ P--- L+++ !E W-- N++ o? K? w--- O
M--@ V? PS PE Y+ PGP- t+ 5 X+ !R tv-->!tv b- DI++(+) D++ G e++>e
h>--->++ r+++ y+++
------END GEEK CODE BLOCK------
James Dunne
More information about the Digitalmars-d
mailing list