Re: Kernighan and Ritchie notation contentions

Subject: Re: Kernighan and Ritchie notation contentions
From: "Laura Lemay, Killer of Trees" <lemay -at- LNE -dot- COM>
Date: Tue, 1 Aug 1995 10:04:59 -0800

>But what mean the cryptic words "notation
>contentions" in the original?

There are two "contentions" that I know of -- one being the differences
between original C ("K&R C") and ANSI C that were mentioned earlier.

The other one is in brace style, that is, where people put the
braces that surround the body of a block statement. K&R does
this:

if ( n < 0) {
foozle;
blorffle;
smotz;


Whereas others prefer

if ( n < 0)

foozle;
blorffle;
smotz;


Or even

if ( n < 0)
{
foozle;
blorffle;
smotz;
}

Contentions about the One True Brace Style to cause a lot of discussion
in the C community. C programmers are odd folk.


Laura (a sometime C programmer)
lemay -at- lne -dot- com


Previous by Author: STC Salary Survey (Was "Would you be angry?")
Next by Author: Re: HELP! CMU or RPI
Previous by Thread: Re: Kernighan and Ritchie notation contentions
Next by Thread: Re[2]: Kernighan and Ritchie notation contentions


What this post helpful? Share it with friends and colleagues:


Sponsored Ads