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