Three Unlikely Successful Features of D

H. S. Teoh hsteoh at quickfur.ath.cx
Tue Mar 20 14:29:05 PDT 2012


On Tue, Mar 20, 2012 at 01:31:08PM -0700, H. S. Teoh wrote:
> On Tue, Mar 20, 2012 at 02:02:15PM -0500, Andrei Alexandrescu wrote:
> > I plan to give a talk at Lang.NEXT
> > (http://channel9.msdn.com/Events/Lang-NEXT/Lang-NEXT-2012) with the
> > subject above. There are a few features of D that turned out to be
> > successful, in spite of them being seemingly unimportant or
> > diverging from related consecrated approaches.
> > 
> > What are your faves? I have a few in mind, but wouldn't want to
> > influence answers.
> [...]
> 
> By far: CTFE.
> 
> Unittest blocks, extended concept of purity, template syntax (as opposed
> to C++'s ugly mess), all types have a default value (.init - makes it so
> painless to write generic code!), scope guards.
[...]

Oh, and I forgot static if. It's a major feature in making compile-time
stuff work like a charm.


T

-- 
Life is too short to run proprietary software. -- Bdale Garbee


More information about the Digitalmars-d mailing list