Omittable parens is an evil

Manfred_Nowak svv1999 at hotmail.com
Sat Jul 19 14:37:30 PDT 2008


Mike wrote:

> "this does something" (parens) and "this is data" (no parens)

Compare this with this extract of your other posting:
>  opAddAssign(auto value) { _bar += value; }
>                // it's extremely extendable!

Yes it is extremely extentable because one can incorporate calls to 
some arbitrary functions into the body of `opAddAssign':

   opAddAssign(auto value) {
     _bar += value;
     action();
     procedure();
   }

... bang!!! Your "clear _VISUAL_ distinction" has been lost.

-manfred


-- 
Maybe some knowledge of some types of disagreeing and their relation 
can turn out to be useful:
http://blog.createdebate.com/2008/04/07/writing-strong-arguments/



More information about the Digitalmars-d mailing list