D is an actively used programming language created in 2001. The D programming language is an object-oriented, imperative, multi-paradigm system programming language created by Walter Bright of Digital Mars and released in 2001. Bright was joined in the design and development effort in 2007 by Andrei Alexandrescu. Though it originated as a re-engineering of C++, D is a distinct language, having redesigned some core C++ features while also taking inspiration from other languages, notably Java, Python, Ruby, C#, and Eiffel. Read more on Wikipedia...

19Years Old 3,967Users 41Jobs

Example code from the Hello World Collection:

// Hello World in D

import std.stdio;

void main()
   writefln("Hello World!");

Example code from Linguist:


Example code from Wikipedia:

1 import std.stdio, std.algorithm, std.range, std.string;
 3 void main()
 4 {
 5     dstring[][dstring] signs2words;
 7     foreach(dchar[] w; lines(File("words.txt")))
 8     {
 9         w = w.chomp().toLower();
10         immutable key = w.dup.sort().release().idup;
11         signs2words[key] ~= w.idup;
12     }
14     foreach(words; signs2words)
15         if(words.length > 1)
16             writefln(words.join(" "));
17 }

Trending Repos

repo stars description

Last updated August 9th, 2020

Edit D on GitHub