Bartosz about Chapel

Timon Gehr timon.gehr at gmx.ch
Sat Nov 12 08:27:01 PST 2011


On 11/12/2011 04:47 PM, Somedude wrote:
> Le 10/11/2011 02:46, Caligo a écrit :
>>
>>
>> On Wed, Nov 9, 2011 at 5:20 PM, Walter Bright
>> <newshound2 at digitalmars.com <mailto:newshound2 at 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.

What makes you think it is conceptually more complex? Most features that 
make D more expressive than C++ are conceptually very simple. And what 
is conceptually simple in D is usually also implemented in a simple way 
(as opposed to C++).


> 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.

I'd claim that nobody fully understands C++. On the other hand, one gets 
quite close to fully understanding D in a relatively short time span.


More information about the Digitalmars-d mailing list