Impressed

H. S. Teoh hsteoh at quickfur.ath.cx
Thu Jul 26 17:18:38 PDT 2012


On Fri, Jul 27, 2012 at 01:59:12AM +0200, Stuart wrote:
> I'm quite new to D, and I've just been reading the guides. I just
> wanted to say I'm very impressed with some of the features I'm reading
> about. Slices, closures, the scope keyword(!!!), class variable
> initialisers, anonymous array literals, array concatenation,
> synchronisation... even decent exception support is a breath of fresh
> air compared to C++.

I think certain usages of the scope keyword is being phased out?
(Somebody else can clarify this.)


[...]
> Why does D have GOTO? I haven't used GOTO in over a decade, because
> it's truly evil.

You don't have to use it. In my experience with C++ and D, I've never
needed to use goto. (I do use it sometimes in C mainly because error
handling is so horrible in C otherwise.)


[...]
> One thing I really think D ought to have is iterators, like VB.NET and
> C# have.

D has something far superior: ranges.

	http://www.informit.com/articles/printerfriendly.aspx?p=1407357&rll=1

Even better, they are completely implemented in the library. No
unnecessary language bloat just to support them.


T

-- 
Ph.D. = Permanent head Damage


More information about the Digitalmars-d mailing list