Difference between revisions of "Tutorials"
(→Common Idioms: another common idiom) |
m (→How To: grammar) |
||
Line 17: | Line 17: | ||
== How To == | == How To == | ||
− | * [[Compiling_and_linking_with_DMD_on_Windows| | + | * [[Compiling_and_linking_with_DMD_on_Windows|Compile and link with DMD on Windows]] |
* [[Function literals]] | * [[Function literals]] | ||
* [[printf]] | * [[printf]] |
Revision as of 23:41, 14 December 2012
Best Practices
- Order of import statements
- Portability and performance
- Conventional module name for importing all modules in a package
Common Idioms
Although D inherited much of its syntax from C and C++, the new features that it introduces lead to some common idioms that are unique to D.
- Initializing variables
- Declaring constants
- Looping over integers
- Unittest placement
- Commenting out code
- Voldemort types