How do you think about the flooding of bracket?

Derek Parnell derek at psych.ward
Thu Jun 15 18:52:47 PDT 2006


On Thu, 15 Jun 2006 17:37:41 +0800, Boris Wang wrote:

> First, now, in a function of D, we can make netsted structure, nested 
> function and versioned code block, so much brackets, which are not code 
> block ,in the code sequence.
> 
> Second, the use of colon and bracket for private/public, static and version 
> keyword, make the judge of access level and storage type is difficult.

> ...
 
> How do you think about all these ?

I agree that the colon format for these qualifiers can lead to
hard-to-maintain code because the scope of them is not as obvious. For that
reason alone I avoid using them. I only use the single statement format and
the braced format...

  private int someVar;

  static {
     int foo;
     int bar;
  }


-- 
Derek
(skype: derek.j.parnell)
Melbourne, Australia
"Down with mediocrity!"
16/06/2006 11:49:54 AM



More information about the Digitalmars-d mailing list