What is "d"

Overview

D is a programming language of systems developed by Walter Bright and since 2006, Andrei Alexandrescu. Its focus is on combining the power and high performance of C and C++ with the productivity of modern language programmers such as Ruby and Python. Special attention is given to competition needs, reliability, documentation, quality assurance, management and portability.

The D language is statically typed and compiles directly into machine code. It supports many programming styles: imperative, object-oriented and functional and offers tools for meta programming based on temmplates. It is a member of the C syntax family.

Hello, world in D

importação std.stdio;

void main ()
{
   writeln ( "Olá, mundo!");
}

Objectives of D

  1. Make it easy to write portable code from compiler to compiler, machine to machine and operating system to operating system.
  2. Eliminate indefinite behavior and implementation as much as possible.
  3. Provide syntactic and semantic constructions that eliminate, or at least reduce common errors.
  4. Reduce or even eliminate the need for external static code checkers.
  5. Support safe memory programming.
  6. Support multi-paradigm programming, that is, a minimum imperative support, structured, object-oriented, generic and even functional programming paradigms.
  7. Doing things the right way should be easier than the wrong way.
  8. Have a short learning curve for comfortable programmers with C, C++, Java or C programming#.
  9. Provide low level access (Bare metal) when necessary.
  10. Offer conditions for advanced programmer to avoid checking if necessary.
  11. Support binary application interface (ABI) C.
  12. Have a context-free grammar, that is, the analysis should not require semantic analysis.
  13. Facilitate writing internationalized applications. Programming
  14. Incorporating Contract Programming and Test Unit Methodology.
  15. Be able to build light programs.
  16. Reduce the costs of creating documentation.

External Resources