"Nick Sabalausky" <[email protected]> wrote in message news:[email protected]... > "Stewart Gordon" <[email protected]> wrote in message > news:[email protected]... >> - What triggered you to switch? For example, D2 just being there, signs >> that D2 is stabilising, the announcement of D1's forthcoming end, >> stumbling over a limitation of D1.... >> > > There were some killer features in D2 I was chomping at the bit for: > > - *Actual* constness (not even necessarily transitive const, although that > is nice. Just simply *having* real const/immutable *at all*). > > - String literals are dynamic arrays instead of static array. So no need > to be slicing them all the time. For instance, no more of this nonsense: > ["string1"[], "another string"]. 'Course, that's another related benefit: > Types of certain expressions determined by best common type instead of > "the exact type of the first item". > > - Traits. God, it's nice to have traits now. Killer feature for > metaprogramming. > > I think those were the main ones. There may have been more, but I've > gotten so used to D2 I can't remember what D1's limitations were anymore. >
Oh, and ranges, of course (along with std.algorithm). That was another killer feature for me.
