What is the Philosophy of D?

Dukc ajieskola at gmail.com
Tue Oct 17 09:24:39 UTC 2017


On Monday, 16 October 2017 at 00:25:32 UTC, codephantom wrote:
> Is philosophy not important?

I think that if somebody wants to nail down a philosophy for D, 
the main page puts it well: "The best paradigm is to not impose 
something at the expense of others". I also heard that long ago 
there was a phrase "D is not a religion". I wasn't myself here 
then but it still describes D alot.

Well, I quess other phrases could also be included it, like 
"ultimate performance must be attainable, but if the way for it 
is otherwise undesirable it should be explicit" but the point is 
that D tries to let you to program in any style it technically 
can. With that "technically can" I mean that it does not support 
logic programming for example because it would require too great 
a rework on implementation and language spec.

This is in contrast to Java and C# which almost force you to use 
object-oriented styles, and Python whose philosophy is "there 
should be one, and preferably only one clear way to do a thing". 
C++ and Forth are examples of languages which share that 
philosophy of D.


More information about the Digitalmars-d mailing list