Re: Style Question
Re: Style Question
- Subject: Re: Style Question
- From: Jens Alfke <email@hidden>
- Date: Fri, 27 Jun 2008 22:25:56 -0700
On 27 Jun '08, at 9:45 PM, Rob Ross wrote:
Btw, how many people realize this convention comes from the early
K&R C book, and the *only* reason they wrote it this way was to
minimize the number of lines of text their examples would take up on
each page? It's a type-setting design decision, and has nothing to
do with how "pure" a programmer you are.
Do you have any citation that shows that was their rationale? From the
forward of K&R:
"The position of braces is less important, although people hold
passionate beliefs. We have chosen one of several popular styles.
Pick a style that suits you, then use it consistently."
Ergo, it was already a popular coding style in 1978. Understandably
so, as a standard terminal fit even fewer lines (only 24) than did a
page of print, so minimizing the number of lines was important in
those days if you wanted to be able to see any amount of your code at
a time.
—Jens [who learned C in 1980 using K&R 1st ed. and a VT-100]_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden