Coolest D features
Serg Kovrov
kovrov at no.spam
Thu Dec 28 17:24:11 PST 2006
Andrei Alexandrescu (See Website For Email) wrote:
> Say you wanted to introduce a programmer friend to D. She might know one
> of D's sibling languages (Java, C, C++, or C#), but you shouldn't rely
> too much on that. What features of D would you describe first to hook
> that friend in?
Those mostly for c/c++ guys:
- builtin arrays (with bound-checks inserted by compiler)
- array slicing
- delegates
- lambdas
- RAII
- DBC
- stdlib and compiler-generted code uses exceptions
- string switches
- modules
- foreach
- can use c-libs
- can provide c-interface
And for java/.net folks:
- native code (as opposite to VM)
--
serg.
More information about the Digitalmars-d
mailing list