Normalizing Const Syntax.

Bill Baxter dnewsgroup at billbaxter.com
Thu Apr 10 09:26:59 PDT 2008


Georg Wrede wrote:

> Only an idiot would spread the attribute over several pages.
> 
> This of course means that if one has a class or simply a list of 
> definitions, that starts to grow multi-line, there comes a point where 
> the attribute envelope should be deleted and the definitions attributed 
> individually. (A good text editor should do this, btw.)

Good point.  A rule of thumb may be that the attribute should never be 
more than 1/2 a page of code away from where it applies.  If it starts 
to get more than that, then you should switch your style (perhaps to 
labeling every function a la Java.)

--bb



More information about the Digitalmars-d mailing list