B
Bwig Zomberi
Antony said:Antony said:On Apr 9, 11:05 am, Bwig Zomberi wrote:Garrett Smith wrote:
ECMA-262 3rd Edition defines the Global and Math
objects. It also defines these constructors:
Object, Function, Array, String, Boolean, Number,
Date, and RegExp. And it defines these Error
object constructors: Error, EvalError,
RangeError, ReferenceError, SyntaxError,
TypeError and URIError.[...] The sentence beginning with "And" is
grammatically incorrect.It isn't.Use a comma after "and" [...]That's not necessary, but you may if you wish.
A comma is used to indicate a pause or for the sake of
clarity.
Of course.
[...]Or use semicolons as Americans would.Americans use them differently? --Antony
Americans style guides suggest the use of semicolons like
this:
ECMA-262 3rd edition defines the Global and Math objects;
the constructors Object, Function, Array, String,
Boolean, Number, Date, and RegExp; and the Error object
constructors Error, EvalError, RangeError,
ReferenceError, SyntaxError, TypeError and URIError.
Then `no' to answer my own question.
You used a colon, which is like two dots. I suggested the use of a
semicolon, which is like a dot and comma. Colon splits the sentence.
Semicolons keeps it together.
I used the colons for a reason. What you've written is still
hard to parse. It could be read as:
* the constructors Object,
* Function,
* Array,
...
* and the Error object constructors Error,
* EvalError
...
The first one is the worst offender. Obviously -- to our
eyes at least -- that's not the intent, but it's not as easy
to read as it could be either. While there is no need to shy
away from long sentences if they are formulated properly,
there is no need to cram three lists into one sentence
either, and certainly not in a technical document where the
ability to impart understanding trumps writing stylishly
(though I think they often go hand-in-hand). --Antony
Semicolons were not my preference. I suggested a list first. Garett
Smith (quoted below) did not fancy it.
I don't feel so strongly on that.
Usually, semicolons do well to reduce ambiguity. In this case, the
original sentences were Smith's, not mine.