asymmetric layout

Richard Harter g-rh at cca.CCA.COM
Thu Mar 17 06:43:33 AEST 1988


In article <1136 at PT.CS.CMU.EDU> edw at IUS1.CS.CMU.EDU (Eddie Wyatt) writes:
>
	.... A message praising the merits of aligning = signs in
	assignments vertically.

It is my opinion, and sometimes practicing style that vertical alignment
is a *good* thing.  Another example is in declarations, e.g.

struct athing		**ptr;		/* Say what ptr is		*/
struct bthing		 *aptr;		/* Another explanation		*/
char			  c;		/* Names all start in same col	*/
char			 *cc;		/* And are alphabetized in type	*/
int			  i;		/* Types sorted by name length	*/

And so on.  However there is a problem with assignments that Eddie does
not mention -- indentation can mess up the alignment by runing over
the assignment column.

-- 

In the fields of Hell where the grass grows high
Are the graves of dreams allowed to die.
	Richard Harter, SMDS  Inc.



More information about the Comp.lang.c mailing list