Le 10/11/2011 02:46, Caligo a écrit :


On Wed, Nov 9, 2011 at 5:20 PM, Walter Bright
<newshou...@digitalmars.com <mailto:newshou...@digitalmars.com>> wrote:

    On 11/9/2011 2:45 PM, Danni Coy wrote:

        how many keywords in D are needed because the preprocessor is
        built into the
        language itself?


    It's true, people forget about the preprocessor keywords when
    counting C++ keywords.



You're right, I did forget about the preprocessor.  Besides the usual
things in the header files, I always try to avoid macros.

There are about 20 directives, so that puts the keywords count for C++
to 101.  It's still fewer than D.  Does that mean D is more complex than
C++?

Python with 33, I think most would agree that is has a very consice
grammer.


I tend to believe D is conceptually more complex than C++. Which means it allows for more expressivity. But it has far fewer warts and a simpler syntax. I believe it takes as much time to learn D than to learn C++ (i.e at least 6 months), but you end up writing more secure and more powerful code.

Reply via email to