Subject: | |
From: | |
Reply To: | |
Date: | Mon, 27 Mar 1995 09:00:14 EST |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
[much snipped on bracket matching in C]
I've been told by folks who have programmed in C for numerous years that
my way of matching brackets drives them mad. I have the same feeling about
their style.
Since C is a freeform language, I am surprised at the common convention
of trailing the terminating bracket at the end of a statement. I have
the habit of aligning brackets on the same column to eliminate the problem
of locating matched pairs (and thus the need for a locator function in
an editor).
Them: { statement;
function(); }
Me: { statement;
function();
}
It looks strange at first, but it has saved me a few yanked folicles.
This costs a line and makes paging up/down more frequent, but with
terminal emulators becoming more flexible and configurable, this isn't
much of a problem. Combined with Qedit's ability to handle more than
24 lines at a time make the mess workable.
=======================================================================
Guy Smith Voice: 804-527-4000 ext 6664
Circuit City Stores, Inc. FAX: 804-527-4008
9950 Mayland Drive E-Mail: [log in to unmask]
Richmond, VA 23233-1464 Private E-Mail: [log in to unmask]
The thoughts expressed herein are mine and do not reflect those of my
employer, or anyone with common sense.
|
|
|