Super-dee-duper D features

janderson askme at me.com
Mon Feb 12 22:13:19 PST 2007


James Dennett wrote:
> [With apologies for following on from my own post:]
> 
> 
> For completeness (and maybe incidentally illustrating how
> easy it is to miss something relevant) I should mention
> that the current working paper for C++ also supports type
> deduction to allow
>   for (auto i = e.begin(); i != e.end(); ++i)
> which is a big step forward (though in this simple case,
> the range form of "for" will still be the better/normal
> choice.)  Giving "auto" some use in this way will remove
> a lot of verbose repetition from C++ code -- but it's
> good that D benefits from some of the points learned
> during the evolution of C++.

This shows how D is a head of the game when compared to C++.  By the 
time CC+ get this, D will be on the next level.  C++ will always be 
playing catchup with D's syntax.

> 
> (I hope it can learn from the excessive implicit conversions
> in C++ too, and eliminate implicit conversions from character
> and boolean types to integers.)
> 
> -- James



More information about the Digitalmars-d mailing list