forked from dlang/dlang.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
comparison.dd
110 lines (105 loc) · 5.3 KB
/
comparison.dd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
Ddoc
$(COMMUNITY D Concepts Overview,
$(P Navigate D's implementation of a few key programming language concepts.)
$(ITEMIZE
$(A spec/garbage.html, Garbage Collection),
Functions
$(ITEMIZE
$(A spec/type.html#delegates, Function Delegates),
$(A spec/function.html#function-overloading, Function Overloading),
$(A spec/function.html#parameters, `out` parameters for functions),
$(A spec/function.html#nested, Nested functions),
$(A spec/expression.html#FunctionLiteral, Function literals),
$(A spec/function.html#closures, Closures),
$(A spec/function.html#variadic, Typesafe variadic arguments),
$(A lazy-evaluation.html, Lazy function argument evaluation),
$(A spec/function.html#interpretation, Compile time function evaluation),
$(A spec/function.html#pseudo-member, Uniform Function Call Syntax),
$(A spec/attribute.html#UserDefinedAttribute, User-Defined Attributes)
),
Arrays
$(ITEMIZE
$(A spec/arrays.html, Lightweight arrays),
$(A spec/arrays.html#resize, Resizeable arrays),
$(A spec/arrays.html#strings, Built-in strings),
$(A spec/arrays.html#slicing, Array slicing),
$(A spec/arrays.html#bounds, Array bounds checking),
$(A spec/expression.html#ArrayLiteral, Array literals),
$(A spec/arrays.html#associative, Associative arrays),
$(A spec/statement.html#SwitchStatement, String switches),
$(A spec/declaration.html#alias, Aliases)
),
OOP
$(ITEMIZE
Object Orientation,
$(A spec/interface.html, Interfaces),
Single inheritance of implementation/multiple inheritance of interfaces,
$(A spec/operatoroverloading.html, Operator overloading),
$(A spec/module.html, Modules),
No built-in dynamic class loading,
$(A spec/class.html#nested, Nested classes),
$(A spec/class.html#nested, Inner (adaptor) classes),
$(A spec/function.html, Covariant return types),
$(A spec/property.html#classproperties, Properties)
),
Performance
$(ITEMIZE
$(A spec/iasm.html, Inline assembler),
Direct access to hardware,
$(A spec/struct.html, Lightweight objects),
$(A https://wiki.dlang.org/Memory_Management, Explicit memory allocation control),
Independent of VM,
Direct native code gen
),
$(A spec/template.html, Generic Programming)
$(ITEMIZE
Class Templates,
$(A spec/template.html#function-templates, Function Templates),
Implicit Function Template Instantiation,
Partial and Explicit Specialization,
Value Template Parameters,
Template Template Parameters,
$(A articles/variadic-function-templates.html, Variadic Template Parameters),
$(A concepts.html, Template Constraints),
$(A spec/template-mixin.html, Template Mixins),
$(A spec/version.html#staticif, static if),
$(A spec/expression.html#IsExpression, expressions),
$(A spec/type.html#Typeof, typeof),
$(A spec/statement.html#ForeachStatement, foreach),
$(A spec/declaration.html#AutoDeclaration, Implicit Type Inference)
),
Reliability
$(ITEMIZE
$(A spec/contracts.html, Contract Programming),
$(A spec/unittest.html, Unit testing),
$(A spec/module.html#staticorder, Static construction order),
$(A spec/statement.html#DeclarationStatement, Guaranteed initialization),
$(A https://wiki.dlang.org/Memory_Management#RAII_.28Resource_Acquisition_Is_Initialization.29, RAII (automatic destructors)),
$(A spec/statement.html#TryStatement, Exception handling),
$(A spec/statement.html#ScopeGuardStatement, Scope guards),
$(A spec/statement.html#TryStatement, try-catch-finally blocks),
$(A spec/statement.html#SynchronizedStatement, Thread synchronization primitives)
),
Compatibility
$(ITEMIZE
C-like syntax,
$(A spec/enum.html, Enumerated types),
$(A spec/type.html, Support for all C types),
$(A spec/type.html, 80 bit floating point),
$(A phobos/std_complex.html, Complex and Imaginary),
$(A spec/attribute.html#linkage, Direct access to C),
Use existing debuggers,
$(A spec/attribute.html#align, Struct member alignment control),
Generates standard object files,
$(A pretod.html, Obviates need for a macro text preprocessor)
),
Other
$(ITEMIZE
$(A spec/version.html, Conditional compilation),
$(A spec/lex.html, Unicode source text),
$(A spec/ddoc.html, Documentation comments)
)
)
)
Macros:
TITLE=Features Overview