On Thu, Nov 10, 2011 at 11:46 AM, Caligo <iteronve...@gmail.com> wrote:
> > > On Wed, Nov 9, 2011 at 5:20 PM, Walter Bright > <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++? > Do keywords like unittest make the language more or less complex? (to use one that isn't in C++). Python with 33, I think most would agree that is has a very consice > grammer. > > Being a dynamic language python would not have keywords for data types right? That has to be a large part of the difference. That said I do have to say that Python does feel very concise.