too much sugar not good for the health

Alexander Panek a.panek at brainsware.org
Wed Mar 21 08:16:49 PDT 2007


Neal Becker wrote:
> 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.

You have a point, though the beauty & readability of D pretty much 
nullifies that. The syntax sugar that is added so far does not actually 
complicate the parsing so much, so D's syntax can still be seen as 
clean, IMHO.



More information about the Digitalmars-d mailing list