Content deleted Content added
CyberShadow (talk | contribs) Convert examples to 2.0-compatible syntax |
Imperative programming with D, almost identical to C? |
||
Line 138:
How about converting the examples to be 2.0-compatible? This will probably involve simply replacing char[]s with strings, and will (somewhat) improve readability for those new to the language. --[[User:The CyberShadow|Vladimir]] 05:25, 5 July 2007 (UTC)
== Imperative programming with D ==
I strongly disagree with the claim that "imperative programming is almost identical to C". D is full of features not existing in C. An earlier section mentions features such as "design by contract, unit testing, true modules, automatic memory management (garbage collection), first class arrays, associative arrays, dynamic arrays, array slicing, nested functions, inner classes, limited form of closures, anonymous functions, compile time function execution, lazy evaluation and has a reengineered template syntax". Almost all of those features are applicable to imperative programming. So if your imperative D programs are almost identical to your C programs, that is because you have limited yourself to a subset of D which is almost identical to C.
|