Thoughts about D

Timon Gehr timon.gehr at gmx.ch
Mon Nov 27 20:19:17 UTC 2017


On 27.11.2017 09:01, IM wrote:
> On Monday, 27 November 2017 at 05:11:06 UTC, Neia Neutuladh wrote:
>> On Monday, 27 November 2017 at 00:14:40 UTC, IM wrote:
>>> - ‎It's quite clear that D was influenced a lot by Java at some 
>>> point, which led to borrowing (copying?) a lot of Java features that 
>>> may not appeal to everyone.
>>
>> Have you observed a human to exist who has complained about a specific 
>> feature in D that is similar to a feature in Java? Relaying their 
>> complaints would be much more useful.
>>
> 
> Yes, in particular All classes inherit from `Object`,

Actually, extern(C++) classes don't. (Also, Object does not. :o) )

> virtual methods by default,

This was almost changed some time ago, but doing so would break a lot of 
existing code.

> inner classes pointers to parent classes

I think marking inner classes static or just not nesting them works 
around this well enough in those cases where it is not desired.

> ... to name a few.

Another one: Object has a lazily initialized 'monitor' field.


More information about the Digitalmars-d mailing list