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

18Years 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:

unittest
{
}

Example code from Wikipedia:

1 import std.stdio, std.algorithm, std.range, std.string;
 2 
 3 void main()
 4 {
 5     dstring[][dstring] signs2words;
 6 
 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     }
13 
14     foreach(words; signs2words)
15         if(words.length > 1)
16             writefln(words.join(" "));
17 }

Trending Repos

repo stars description

Last updated November 6th, 2019