473,388 Members | 1,326 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Eats, Shoots & Leaves

Eats, Shoots & Leaves

http://www.eatsshootsandleaves.com/

I believe that
C programmers should follow the *normal" rules of punctuation --
especially in their C programs.
Nov 14 '05 #1
15 1435

"E. Robert Tisdale" <E.**************@jpl.nasa.gov> wrote in message
news:c9**********@nntp1.jpl.nasa.gov...
Eats, Shoots & Leaves

http://www.eatsshootsandleaves.com/

I believe that
C programmers should follow the *normal" rules of punctuation --
A book about English punctuation is not topical
for comp.lang.c.
especially in their C programs.


The punctuation of C programs is not governed
by the rules of English, but by ISO 9899.

-Mike
Nov 14 '05 #2
Mike Wahler wrote:
E. Robert Tisdale wrote:
Eats, Shoots & Leaves

http://www.eatsshootsandleaves.com/

I believe that
C programmers should follow the *normal" rules of punctuation --


A book about English punctuation
is not topical for comp.lang.c.
especially in their C programs.


The punctuation of C programs is not governed
by the rules of English, but by ISO 9899.


You missed the point Mike. It wasn't about C syntax.
It was about coding style
which is *not* governed by ISO 9899.
Nov 14 '05 #3

"E. Robert Tisdale" <E.**************@jpl.nasa.gov> wrote in message
news:c9**********@nntp1.jpl.nasa.gov...
Mike Wahler wrote:
E. Robert Tisdale wrote:
Eats, Shoots & Leaves

http://www.eatsshootsandleaves.com/

I believe that
C programmers should follow the *normal" rules of punctuation --
A book about English punctuation
is not topical for comp.lang.c.
especially in their C programs.


The punctuation of C programs is not governed
by the rules of English, but by ISO 9899.


You missed the point Mike. It wasn't about C syntax.


It was about 'punctutation'.

Above you wrote:
I believe that
C programmers should follow the *normal" rules of punctuation --


Punctuation, as defined by the C language, is part of its
syntax. One of the types of tokens defined is 'punctuator'.
It was about coding style
which is *not* governed by ISO 9899.


The punctuation rules of the C grammar are not
a matter of style, they're part of the syntax rules.

-Mike
Nov 14 '05 #4
In article <c9**********@nntp1.jpl.nasa.gov>,
E. Robert Tisdale <E.**************@jpl.nasa.gov> wrote:
Mike Wahler wrote:
E. Robert Tisdale wrote:
I believe that
C programmers should follow the *normal" rules of punctuation --


A book about English punctuation
is not topical for comp.lang.c.
especially in their C programs.


The punctuation of C programs is not governed
by the rules of English, but by ISO 9899.


You missed the point Mike. It wasn't about C syntax.
It was about coding style
which is *not* governed by ISO 9899.


In English, it is conventional to end most (not all, but most) statements
with a period ('.', which if I'm not mistaken is referred to in British
as a full stop). Please try doing this in your C programs and let us
know how it works.
dave

--
Dave Vandervies dj******@csclub.uwaterloo.ca

Conclusion: each one is faster than the other.
--Chris Torek in comp.lang.c
Nov 14 '05 #5
Dave Vandervies wrote:
E. Robert Tisdale <E.**************@jpl.nasa.gov> wrote:
Mike Wahler wrote:
E. Robert Tisdale wrote: I believe that C programmers should follow the *normal" rules
of punctuation --

A book about English punctuation
is not topical for comp.lang.c.

especially in their C programs.

The punctuation of C programs is not governed
by the rules of English, but by ISO 9899.


You missed the point Mike. It wasn't about C syntax.
It was about coding style
which is *not* governed by ISO 9899.


In English, it is conventional to end most (not all, but most)
statements with a period ('.', which if I'm not mistaken is
referred to in British as a full stop). Please try doing this
in your C programs and let us know how it works.


+-------------------+ .:\:\:/:/:.
| PLEASE STARVE | :.:\:\:/:/:.:
| THE TROLLS | :=.' - - '.=:
| | '=(\ 9 9 /)='
| Thank you, | ( (_) )
| Management | /`-vvv-'\
+-------------------+ / \
| | @@@ / /|,,,,,|\ \
| | @@@ /_// /^\ \\_\
@x@@x@ | | |/ WW( ( ) )WW
\||||/ | | \| __\,,\ /,,/__
\||/ | | | jgs (______Y______)
/\/\/\/\/\/\/\/\//\/\\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
================================================== ============

--
A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Nov 14 '05 #6

"Dave Vandervies" <dj******@csclub.uwaterloo.ca> wrote in

In English, it is conventional to end most (not all, but most)
statements with a period ('.', which if I'm not mistaken is referred
to in British as a full stop). Please try doing this in your C
programs and let us know how it works.

Strictly a "period" is the sentence, not the punctuation that stops it, so
the Americans have got it wrong.

This would be quite a good exercise for the Obfuscated C competion - write a
program which is legal C as well as a grammatical and correctly-punctuated
English paragraph.
Nov 14 '05 #7
Dave Vandervies wrote:
In English, it is conventional to end most (not all, but most) statements
with a period ('.', which if I'm not mistaken is referred to in British
as a full stop).


Commas should delimit the dependant clause: 'if I'm not
mistaken.' You'd better read the book.

Nov 14 '05 #8
E. Robert Tisdale wrote:
Mike Wahler wrote:
E. Robert Tisdale wrote:
Eats, Shoots & Leaves

http://www.eatsshootsandleaves.com/

I believe that
C programmers should follow the *normal" rules of punctuation --


A book about English punctuation
is not topical for comp.lang.c.

If it's about punctuation in comments, why not? Comments are a part of
the C language.
Nov 14 '05 #9

On Sun, 6 Jun 2004, Curley Q. wrote:

Dave Vandervies wrote:
In English, it is conventional to end most (not all, but most) statements
with a period ('.', which if I'm not mistaken is referred to in British
as a full stop).


Commas should delimit the dependant clause: 'if I'm not
mistaken.' You'd better read the book.


Commas generally indicate pauses in speech. If, as here, the sentence
would make no sense without the pauses, then the commas are required.
However (and here the comma is again required), there are situations
such as this one here which do not generally require paired commas.
Admittedly, inserting paired commas tends to make things easier to read,
especially in contrived sentences such as the ones above --- but the
points are that commas are not *always* required, and that random
English-usage discussions are *always* off-topic here. Follow-ups set.

FWIW, neither are panda jokes. Please don't feed the Trolls[dale].

-Arthur
Nov 14 '05 #10
Arthur J. O'Dwyer wrote:
Commas generally indicate pauses in speech.
If, as here, the sentence would make no sense without the pauses,
then the commas are required.
Nonsense!
Unless the sentence is meant to be read aloud, the pause makes no sense.
The purpose of the comma (in your example and mine)
is to set off a prepositional phrase that appears out of place.
If you had written, "The commas are required
if the sentence would make no sense without the pauses" or
if I had written, "The pause makes no sense
unless the sentence is meant to be read aloud"
the comma would not be required.
However (and here the comma is again required),
According to The American Heritage Dictionary of the English Language

http://www.bartleby.com/61/58/H0305800.html

USAGE NOTE: Although some grammarians have insisted that however should
not be used to begin a sentence, this rule has been ignored by a number
of reputable writers. Forty-two percent of Usage Panelists say they do
not follow the rule in their own writing, 19 percent say they observe it
only sometimes, and 36 percent say they usually observe it. See Usage
Notes at but, whatever.
there are situations such as this one here
which do not generally require paired commas.
Admittedly, inserting paired commas tends to make things easier to read,
especially in contrived sentences such as the ones above ---
but the points are that commas are not *always* required,
The comma before a conjunction (i.e. , and)
is redundant and superfluous.
and that random English-usage discussions are *always* off-topic here.


But no [white]space should ever appear before a comma
and at least one [white]space should appear after a comma.
s
Nov 14 '05 #11
In article <ca**********@nntp1.jpl.nasa.gov> E.**************@jpl.nasa.gov writes:
....
The comma before a conjunction (i.e. , and)
is redundant and superfluous.


Ah, the serial comma. It has been the topic of dicussion a few months
ago on sci.lang, and now here. It can be useful, but not always is so.
It appears to be required in American literature and it appears to not
be allowed in English literature, so take your pick. (And make a
comparison between the US and UK versions of Harry Potter books.) But
it is off-topic here.
--
dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131
home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/
Nov 14 '05 #12
Dave Vandervies wrote:
In English,
it is conventional to end most (not all, but most) statements
with a period ('.', which if I'm not mistaken
is referred to in British as a full stop).


You must be thinking of the Pascal computer programming language.
In C as in Pascal, statements are clauses
which are properly terminated by a semicolon.
A Pascal program is one long sentence properly terminated by a period.
Nov 14 '05 #13
"Dik T. Winter" <Di********@cwi.nl> wrote in message news:<Hy********@cwi.nl>...
In article <ca**********@nntp1.jpl.nasa.gov> E.**************@jpl.nasa.gov writes:
...
> The comma before a conjunction (i.e. , and)
> is redundant and superfluous.


Ah, the serial comma. It has been the topic of dicussion a few months
ago on sci.lang, and now here. It can be useful, but not always is so.
It appears to be required in American literature and it appears to not
be allowed in English literature, so take your pick. (And make a
comparison between the US and UK versions of Harry Potter books.) But
it is off-topic here.


The english call a comma before an and, an Oxford comma. They are
quite useful in lists to reduce ambiguity. It makes it clear if the
whole list is connected, or if the last two items are more intimately
connected. For example:

To my parents, Ayn Rand and God.

would be

To my parents, Ayn Rand, and God.

Which kills the humour a bit. It can also be useful if there are
several things in a list connected with and's themselves.

These items are available in black and white, red and yellow, and blue
and green.

Thankfully C doesn't have these grammatical intricacies. I seems to
specialise more in semantic intricacies.
Nov 14 '05 #14
"E. Robert Tisdale" <E.**************@jpl.nasa.gov> wrote:
According to The American Heritage Dictionary of the English Language


I'm sorry, but that's like quoting Bjarne Stroustrup on correct ISO C
usage.

Richard
Nov 14 '05 #15
Arthur J. O'Dwyer wrote:
On Sun, 6 Jun 2004, Curley Q. wrote:
Dave Vandervies wrote:
In English, it is conventional to end most (not all, but most) statements
with a period ('.', which if I'm not mistaken is referred to in British
as a full stop).


Commas should delimit the dependant clause: 'if I'm not
mistaken.' You'd better read the book.

Commas generally indicate pauses in speech.

[snip]

As my elementary school teacher stated, pauses in speech differ
from when climb up the four flights of stairs and when you are
sitting on the couch and resting. One would require many commas
after climbing a bunch of stairs. Less commas for the couch
potatoes.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book

Nov 14 '05 #16

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: mikeSpindler | last post by:
Apparently installing Python2.3 leaves Redhat 9.0 users fending for themselves to figure out how to install tkinter. What's the trick? So far - I've tried: -reinstalling Python; -hiding all...
4
by: k.mitz | last post by:
Hi, I have a PHP application that allows users to generate a .pdf report of their database content. Normally, I've had to refresh a page to call the script to generate the report, so there's a...
20
by: William | last post by:
Original question: "Give a one-line C expression to test whether a number is a power of 2. " Answer: if (x && !(x & (x-1)) == 0) My question: Why does this expression work?
15
by: Chetan Raj | last post by:
Hi All, We have a web-application in asp.net that interacts with legacy code written in COM. The memory usage in aspnet_wp.exe increases every sec and never reduces. Using the .NET performance...
8
by: Nathan Sokalski | last post by:
I add a JavaScript event handler to some of my Webcontrols using the Attributes.Add() method as follows: Dim jscode as String = "return (event.keyCode>=65&&event.keyCode<=90);"...
39
by: dancer | last post by:
Can somebody tell me why I get this message with the following code? Compiler Error Message: BC30452: Operator '&' is not defined for types 'String' and 'System.Web.UI.WebControls.TextBox'. ...
23
by: Hallvard B Furuseth | last post by:
As far as I can tell, (x & -1) is nonzero if the integer x is negative zero. So for signed types, x == 0 does not guarantee (x & foo) == 0. Is that right? (Not that I expect to ever encounter a...
5
by: Zaxxon21 | last post by:
I'm basically trying to implement a simple drop down menu list for a button that I have. When the user hovers over the button, I want a list of button options to appear below the button. If the...
6
by: Max Ivanov | last post by:
I'm playing with pyprocessing module and found that it eats lot's of memory. I've made small test case to show it. I pass ~45mb of data to worker processes and than get it back slightly modified....
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.