Ad
related to: using semicolons to separate clauses
Search results
Results From The WOW.Com Content Network
The last major use of the comma, semicolon, and period hierarchy is in Erlang (1986), where commas separate expressions; semicolons separate clauses, both for control flow and for function clauses; and periods terminate statements, such as function definitions or module attributes, not the entire program. Drawbacks of having multiple different ...
The semicolon ; is used to separate two independent but related clauses: My wife would like tea; I would prefer coffee. The semicolon is also used to separate list items when the list items contain commas: "She saw three men: Jamie, who came from New Zealand; John, the milkman's son; and George, a gaunt kind of man."
The semicolon is the comma's first cousin, but it works a little bit harder; it also makes you look smarter. The post Here’s When You Should Use a Semicolon appeared first on Reader's Digest.
semicolon separated (but sometimes implicitly inserted on newlines) Lua: whitespace separated (semicolon optional) Mathematica a.k.a. Wolfram semicolon separated MATLAB: newline terminated, separated by semicolon or comma (semicolon – result of receding statement hidden, comma – result displayed) MUMPS a.k.a. M
The independent clauses can be joined inadequately with only a comma (the comma splice). In general, run-on sentences occur when two or more independent clauses are joined without using a coordinating conjunction (i.e. for, and, nor, but, or, yet, so) or correct punctuation (i.e. semicolon, dash, or period).
Comma splices are rare in most published writing, [6] but are common among inexperienced writers of English. [1] [7]The Elements of Style by William Strunk Jr. and E. B. White advises using a semicolon, not a comma, to join two grammatically complete clauses, or writing the clauses as separate sentences.
An independent clause contains a subject and a predicate and makes sense by itself. Independent clauses can be joined by using a semicolon or by using a comma followed by a coordinating conjunction ( and , but , for , or , nor , so , yet , etc.).
"To separate the elements (words, phrases, clauses) of a simple series of more than 2 elements, including a comma before the closing 'and' or 'or' (the so-called serial comma). Routine use of the serial comma helps to prevent ambiguity." Garner's Modern English Usage, 4th edition (Oxford University Press, 2016), "Punctuation," § D, "Comma", p. 748