Power of D

Jonathan M Davis jmdavisProg at gmx.com
Wed Apr 25 23:19:56 PDT 2012


On Wednesday, April 25, 2012 19:51:18 bioinfornatics wrote:
> i search some example of something easy (more easy)  to do in D an not
> in another language if possible
> - D - C++
> - D - Haskell
> - D - Java
> - D - python
> 
> thanks a lot

Pretty much everything that Andrei talks about in this recent presentation:

http://channel9.msdn.com/Events/Lang-NEXT/Lang-NEXT-2012/Three-Unlikely-
Successful-Features-of-D?format=html5

The starkest example is compile-time stuff - CTFE, string mixins, and some of 
the templated stuff. But even something as simple as scope statements are a 
pretty massive improvement which is impossible in any other language that I've 
ever used. You can use try-catch-finally blocks (which is what scope statements 
lower to anyway), but the code is _way_ messier and more error-prone that way.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list