too much sugar not good for the health

Neal Becker ndbecker2 at gmail.com
Wed Mar 21 03:58:06 PDT 2007


Reading through "D Specification", I'm a bit surprised.  I believe the goal
of D is to be a clean, improved C++.  Yet, there are a number of instances
where syntactic 'sugar' is added in ways that seem almost arbitrary.  The
latest example I found is 'Functions as Array Properties'.  I'm not sure
what overwhelming need this syntax fulfills, maybe I'm missing something.

There is a lot of extra conceptual overhead in adding extra syntax.  One
might argue that "You don't have use it if you don't like it.".  That is,
unfortunately, not really true.  If other's use it and I have to grok there
code, I need to understand the extra rules.

I've been following D with great interest.  I hope the language will not add
such 'features' without great need - it really detracts from the purity and
simplicity.



More information about the Digitalmars-d mailing list