Skip to content

Commit

Permalink
Merge pull request #837 from aG0aep6G/unlist-convenience-power-effici…
Browse files Browse the repository at this point in the history
…ency

turn list items of Convenience/Power/Efficiency to paragraphs
  • Loading branch information
andralex committed Jan 25, 2015
2 parents 8e2706e + b37cdc2 commit 3b4f215
Showing 1 changed file with 12 additions and 20 deletions.
32 changes: 12 additions & 20 deletions index.dd
Expand Up @@ -43,9 +43,7 @@ efficiency, control, and modeling power, with safety and programmer productivity

$(SECTION3 Convenience,

$(UL

$(LI D allows writing large code fragments without redundantly specifying types,
$(P D allows writing large code fragments without redundantly specifying types,
like dynamic languages do. On the other hand, static inference deduces types and other
code properties, giving the best of both the static and the
dynamic worlds. $(EXAMPLE 1,
Expand All @@ -71,7 +69,7 @@ auto min(T1, T2)(T1 lhs, T2 rhs)

))

$(LI Automatic memory management makes for safe, simple, and robust code.
$(P Automatic memory management makes for safe, simple, and robust code.
D also supports scoped resource management (aka the
$(HTTP en.wikipedia.org/wiki/Resource_Acquisition_Is_Initialization, RAII) idiom)
and $(LINK2 statement.html#ScopeGuardStatement, $(D scope) statements) for
Expand Down Expand Up @@ -99,7 +97,7 @@ void main()
)
)

$(LI Built-in linear and associative arrays, slices, and ranges make daily
$(P Built-in linear and associative arrays, slices, and ranges make daily
programming simple and pleasant for tasks, both small and large. $(EXAMPLE 3,
----
#!/usr/bin/env rdmd
Expand All @@ -120,13 +118,11 @@ void main()
----
))

))
)

$(SECTION3 Power,

$(UL

$(LI The best paradigm is to not impose something at the expense of others.
$(P The best paradigm is to not impose something at the expense of others.
D offers classic polymorphism, value semantics, functional
style, generics, generative programming, contract programming,
and more—all harmoniously integrated. $(EXAMPLE 4,
Expand Down Expand Up @@ -180,26 +176,24 @@ void main()
----
))

$(LI D offers an innovative approach to concurrency, featuring true
$(P D offers an innovative approach to concurrency, featuring true
immutable data, message passing, no sharing by default, and
controlled mutable sharing across threads. $(HTTP
informit.com/articles/article.aspx?p=1609144, Read more).)

$(LI From simple scripts to large projects, D has the breadth
$(P From simple scripts to large projects, D has the breadth
to scale with any application's needs: unit testing,
information hiding, refined modularity, fast compilation, precise
interfaces. $(HTTP drdobbs.com/high-performance-computing/217801225,
Read more).)

))
)

$(SECTION3 Efficiency,

$(UL

$(LI D compiles naturally to efficient native code.)
$(P D compiles naturally to efficient native code.)

$(LI D is designed such that most "obvious" code is fast $(I and)
$(P D is designed such that most "obvious" code is fast $(I and)
safe. On occasion a function might need to escape the confines of type
safety for ultimate speed and control. For such rare cases D offers
native pointers, type casts, access to any C function without any
Expand Down Expand Up @@ -253,13 +247,11 @@ void main()
----
))

$(LI The $(D @safe), $(D @trusted), and $(D @system) function
$(P The $(D @safe), $(D @trusted), and $(D @system) function
attributes allow the programmer to best decide the safety-efficiency
tradeoffs of an application, and have the compiler check for
consistency. $(LINK2 memory-safe-d.html, Read more.))

)

))

$(COMMENT Community,
Expand Down Expand Up @@ -551,7 +543,7 @@ Macros:
D=<span class="d_inlinecode">$0</span>
EXAMPLE=
<script>
document.write('$(TAG2 div, id="q$1" class="question" onclick="showHideAnswer(this);", <span class="nobr">See example.</span>)');
document.write('$(TAG2 span, id="q$1" class="question" onclick="showHideAnswer(this);", <span class="nobr">See example.</span>)');
</script>
<noscript><span class="nobr">See example.</span></noscript>
$(TAG2 div, id="a$1" class="answer-nojs", $2)
Expand Down

0 comments on commit 3b4f215

Please sign in to comment.