Semicolon

Print Print
Reading time 18:40

;
Semicolon
In UnicodeU+003B ; SEMICOLON (HTML &#59; · ;)
؛
Arabic semi colon Ethiopic semicolon Bamum semicolon

The semicolon or semi-colon[1]; is a symbol commonly used as orthographic punctuation. In the English language, a semicolon is most commonly used to link (in a single sentence) two independent clauses that are closely related in thought. When a semicolon joins two or more ideas in one sentence, those ideas are then given equal rank.[2] Semicolons can also be used in place of commas to separate the items in a list, particularly when the elements of that list contain commas.[3]

The semicolon is one of the least understood of the standard marks, and so it is probably not used by many English speakers.[4]

In the QWERTY keyboard layout, the semicolon resides in the unshifted homerow beneath the little finger of the right hand and has become widely used in programming languages as a statement separator or terminator.[5]

History

The first printed semicolon was the work of the Italian printer Aldus Manutius the Elder in 1496.[6] Manutius established the practice of using the semicolon to separate words of opposed meaning and to allow a rapid change in direction in connecting interdependent statements.[7][8]Ben Jonson was the first notable English writer to use the semicolon systematically.[9] The modern uses of the semicolon relate either to the listing of items or to the linking of related clauses.

English

Although terminal marks (i.e. full stops, exclamation marks, and question marks) indicate the end of a sentence, the comma, semicolon, and colon are normally sentence-internal, making them secondary boundary marks. The semicolon falls between terminal marks and the comma; its strength is equal to that of the colon.[10]

The plural of semicolon in English is semicola or semicolons.

Constraints

  1. When a semicolon marks the left boundary of a constituent (e.g., the beginning of a clause or a phrase), the right boundary is marked by punctuation of equal or greater strength.[citation needed]
  2. When two or more semicolons are used within a single construction, all constituents are at the same level, unlike commas, which can separate, for example, subordinate clauses from main clauses.[citation needed]

Usage

Semicolons are followed by a lower case letter, unless that letter would ordinarily be capitalized mid-sentence (e.g., the word "I", acronyms/initialisms, or proper nouns). In older English printed texts, colons and semicolons are offset from the preceding word by a non-breaking space, a convention still current in present-day continental French texts. Ideally, the space is less wide than the inter-word spaces. Some guides recommend separation by a hair space.[11] Modern style guides recommend no space before them and one space after. They also typically recommend placing semicolons outside ending quotation marks, although this was not always the case. For example, the first edition of The Chicago Manual of Style (1906) recommended placing the semicolon inside ending quotation marks.[12]

Applications of the semicolon in English include:

  • Between items in a series or listing containing internal punctuation, especially parenthetic commas, where the semicolons function as serial commas. The semicolon divides the items on the list to more discrete parts, without which the remaining jumble of commas could cause confusion for the reader. This is sometimes called the "super comma" function of the semicolon:
    • The people present were Jamie, a man from New Zealand; John, the milkman's son; and George, a gaunt kind of man with no friends.
    • Several fast food restaurants can be found within the following cities: London, England; Paris, France; Dublin, Ireland; and Madrid, Spain.
    • Here are three examples of familiar sequences: one, two, and three; a, b, and c; first, second, and third.
    • (Fig. 8; see also plates in Harley 1941, 1950; Schwab 1947).
  • Between closely related independent clauses not conjoined with a coordinating conjunction, when the two clauses are balanced, opposed or contradictory:[13]
    • My wife would like tea; I would prefer coffee.
    • I went to the basketball court; I was told it was closed for cleaning.
    • I told Kate she's running for the hills; I wonder if she knew I was joking.
  • In rare instances, when a comma replaces a period (full stop) in a quotation, or when a quotation otherwise links two independent sentences:
    • "I have no use for this," he said; "you are welcome to it."
    • "Is this your book?" she asked; "I found it on the floor."

There does not have to be an unreasonable amount of commas for the usage of semicolons to be justified, as shown by this example:

A crime or public offense is an act committed or omitted in violation of a law forbidding or commanding it, and to which is annexed, upon conviction, either of the following punishments:

1. Death;
2. Imprisonment;
3. Fine;
4. Removal from office; or,
5. Disqualification to hold and enjoy any office of honor, trust, or profit in this State.[14]

Other languages

Arabic

In Arabic, the semicolon is called Fasila Manqoota (Arabic: فاصلة منقوطة‎) which means literally "a dotted comma", and is written inverted ؛. In Arabic, the semicolon has several uses:

  • It can be used between two phrases, in which the first phrase causes the second.
    • Example: "He played a lot; so, his clothes became dirty". (Arabic: لَعِبَ كَثِيرًا؛ فَٱتَّسَخَتْ مَلَابِسُهُ.‎)
  • It can be used between two phrases, where the second is a reason for the first.
    • Example: "Your sister did not get high marks; she didn't study". (Arabic: لم تحقق أختك درجات عالية؛ لأنها لم تدرس .‎)

Greek, Church Slavonic

In Greek and Church Slavonic, a semicolon indicates a question, similar to a Latin question mark.[15][16] To indicate a long pause or separate sections, each with commas (the semicolon's purpose in English), Greek uses, but extremely rarely, the Greek: άνω τελεία, romanized: áno teleía, lit.'up dot', an Interpunct ·.

Church Slavonic example: гдѣ єсть рождeйсѧ царь їудeйскій; (Where is the one who is born king of the Jews? – Matthew 2:1)

Greek Example: Τι είναι μια διασύνδεση; (What is an interpunct?)

French

In French, a semicolon (point-virgule, literally "dot-comma") is a separation between two full sentences, used where either a colon or a comma would not be appropriate. The phrase following a semicolon has to be an independent clause, which is related to the previous one (but not explaining it, contrary to a sentence introduced by a colon).

The dash character is used in French writing too, but not as widely as the semicolon. Usage of these devices (semicolon and dash) varies from author to author.

Literature

"Just as there are writers who worship the semicolon, there are other high stylists who dismiss it – who label it, if you please, middle-class."

Lynne Truss, Eats, Shoots, and Leaves.[17]

Some authors have avoided and rejected the usage of the semicolon throughout their works. Lynne Truss stated:

Samuel Beckett spliced his way merrily through such novels as Molloy and Malone Dies, thumbing his nose at the semicolon all the way. James Joyce preferred the colon, as he thought it was more authentically classical. P. G. Wodehouse did an effortlessly marvelous job without it, George Orwell tried to avoid the semicolon completely in Coming Up for Air (1939), Martin Amis included just one semicolon in Money (1984), and Umberto Eco was congratulated by an academic reader for using zero semicolons in The Name of the Rose (1983).[18]

In response to Truss, Ben Macintyre, a columnist in The Times, wrote:

Americans have long regarded the semi-colon with suspicion, as a genteel, self-conscious, neither-one-thing-nor-the other sort of punctuation mark, with neither the butchness of a full colon nor the flighty promiscuity of the comma. Hemingway, Chandler and Stephen King wouldn't be seen dead in a ditch with a semi-colon (though Truman Capote might). Real men, goes the unwritten rule of American punctuation, don't use semi-colons.[19]

As metaphor

In Kurt Vonnegut's book A Man Without a Country, he wrote: "Here is a lesson in creative writing. The first rule: do not use semicolons. Semicolons are transvestite hermaphrodites. All they do is show you've been to college."[20][21]

Encoding in digital media

The semicolon has an assigned value in computer character encoding standards. In ASCII it is encoded as 0x3B, in EBCDIC it is encoded as 0x5E, and in Unicode it is encoded as U+003B.

Unicode contains encoding for several semicolon characters:

  • U+003B ; SEMICOLON – inherited from ASCII
  • U+037E ; GREEK QUESTION MARK
  • U+061B ؛ ARABIC SEMICOLON – Arabic script
  • U+1364 ETHIOPIC SEMICOLON – Geʽez script
  • U+204F REVERSED SEMICOLON – used in old writing systems, such as Hungarian Runic[22]
  • U+236E APL FUNCTIONAL SYMBOL SEMICOLON UNDERBAR – used in the APL programming language
  • U+2E35 TURNED SEMICOLON – "indicates sudden glottal closure"
  • U+A6F6 BAMUM SEMICOLON – Bamum script
  • U+FE14 PRESENTATION FORM FOR VERTICAL SEMICOLON – determines orientation when wide-character scripts are written vertically instead of horizontally
  • U+FE54 SMALL SEMICOLON – Small Form Variants are for compatibility with Chinese National Standard CNS 11643
  • U+FF1B FULLWIDTH SEMICOLON – for use in wide-character scripts such as kanji
  • U+E003B TAG SEMICOLON – deprecated tags block

Computing usage

Programming

In computer programming, the semicolon is often used to separate multiple statements (for example, in Perl, Pascal, and SQL; see Pascal: Semicolons as statement separators). In other languages, semicolons are called terminators[5] and are required after every statement (such as in PL/I,[23]Java, and the C family). Today semicolons as terminators has largely won out, but this was a divisive issue in programming languages from the 1960s into the 1980s.[24] An influential and frequently-cited study in this debate was Gannon & Horning (1975), which concluded strongly in favor of semicolon as a terminator: "The most important [result] was that having a semicolon as a statement terminator was better than having a semicolon as a statement separator."[25] The study has been criticized as flawed by proponents of semicolon as a separator,[26] due to participants being familiar with a semicolon-as-terminator language and unrealistically strict grammar. Nevertheless, the debate ended in favor of semicolon as terminator. Therefore, semicolon provides structure to the programming language.

Semicolons are optional in a number of languages, including BCPL, Python, Eiffel, and Go, meaning that they are part of the formal grammar for the language, but can be inferred in many or all contexts (e.g. by end of line that ends a statement (in Go)). As languages can be designed without them, semicolons are considered an unnecessary nuisance by some.[26]

The use of semicolons in control flow structures and blocks of code is varied  – semicolons are generally omitted after a closing brace, but included for a single statement branch of a control structure (the "then" clause), except in Pascal, where a semicolon terminates the entire if...then...else clause (to avoid dangling else) and thus is not allowed between a "then" and the corresponding "else", as this causes unnesting.

This use originates with ALGOL 60, and falls between the comma , – used as a list separator – and the period/full stop . – used to mark the end of the program. The semicolon, as a mark separating statements, corresponds to the ordinary English usage of separating independent clauses, and gives the entire program the gross syntax of a single ordinary sentence. Of these other characters, whereas commas have continued to be widely used in programming for lists (and rare other uses, such as the comma operator that separates expressions in C), they are rarely used otherwise, and the period as the end of the program has fallen out of use. 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 separators or terminators (compared to a single terminator and single grouping, as in semicolon-and-braces) include mental overhead in selecting punctuation, and overhead in rearranging code, as this requires not only moving lines around, but also updating the punctuation.[27]

In some cases the distinction between a separator and a terminator is strong, such as early versions of Pascal, where a final semicolon yields a syntax error. In other cases a final semicolon is treated either as optional syntax, or as being followed by a null statement, which is either ignored or treated as a NOP (no operation or null command); compare trailing commas in lists. In some cases a blank statement is allowed, allowing a sequence of semicolons or the use of a semicolon by itself as the body of a control flow structure. For example, a blank statement (a semicolon by itself) stands for a NOP in C/C++, which is useful in busy waiting synchronization loops.

APL uses semicolons to separate declarations of local variables, and to separate axes when indexing multi-dimensional arrays, for example matrix[2;3].

Other languages (for instance, some assembly languages and LISP dialects, CONFIG.SYS and INI files) use semicolons to mark the beginning of comments.

Example C code:

int main() {
  int x, y;
  x = 1; y = 2;
  printf("X + Y = %d", x + y);
  return 0;
}

Or in JavaScript:

var x = 1; var y = 2;
alert("X + Y = " + (x + y));

Conventionally, in many languages, each statement is written on a separate line, but this is not typically a requirement of the language. In the above examples, two statements are placed on the same line; this is legal, because the semicolon separates the two statements. Thus programming languages like Java, the C family, Javascript etc. use semicolons to obtain a proper structure in the respective languages.

Data

The semicolon is often used to separate elements of a string of text. For example, multiple e-mail addresses in the "To" field in some e-mail clients have to be delimited by a semicolon.

In Microsoft Excel, the semicolon is used as a list separator, especially in cases where the decimal separator is a comma, such as 0,32; 3,14; 4,50, instead of 0.32, 3.14, 4.50.

In MATLAB and GNU Octave, the semicolon can be used as a row separator when defining a vector or matrix (whereas a comma separates the columns within a row of a vector or matrix) or to execute a command silently, without displaying the resulting output value in the console.

In HTML, a semicolon is used to terminate a character entity reference, either named or numeric. The declarations of a style attribute in Cascading Style Sheets (CSS) are separated and terminated with semicolons.[28]

The file system of RSX-11 and OpenVMS, Files-11, uses semicolons to indicate a file's version number.[29] The semicolon is permitted in long filenames in the Microsoft Windows file systems NTFS and VFAT, but not in its short names.[30]

In some delimiter-separated values file formats, the semicolon is used as the separator character, as an alternative to comma-separated values.

Mathematics

In the argument list of a mathematical function , a semicolon may be used to separate variables from fixed parameters.[citation needed]

In differential geometry, a semicolon preceding an index is used to indicate the covariant derivative of a function with respect to the coordinate associated with that index.

In the calculus of relations, the semicolon is used in infix notation for the composition of relations:

Other uses

The semicolon is commonly used as parts of emoticons, in order to indicate winking or crying, as in ;) and ;_;.

Project Semicolon is the name of a faith-based anti-suicide initiative (since the semicolon continues a sentence rather than ending it) which has led to the punctuation mark becoming a highly symbolic and popular tattoo,[31] which is most commonly done on the wrist.

The Humphrey point is sometimes used instead of a decimal point in duodecimal numbers.

See also

  • Colon
  • Comma
  • Period (punctuation)

References

  1. ^ "Learning English – BBC World Service". bbc.co.uk.
  2. ^ "Using Semicolons". The Writing Center. Retrieved 2020-11-08. A semicolon is most commonly used to link (in a single sentence) two independent clauses that are closely related in thought. When a semicolon is used to join two or more ideas (parts) in a sentence, those ideas are then given equal position or rank.
  3. ^ Scribendi.com. "Learning English Grammar: How to Correctly Use a Semicolon". Archived from the original on 8 August 2014. Retrieved 30 July 2014.
  4. ^ "For Love of the Semicolon". Insights to English. Retrieved 2020-11-09.
  5. ^ a b Mössenböck, H. "Introduction to C# – The new language for Microsoft .NET" (PDF) (subtitle: Statements). www.uni-linz.ac.at: University of Linz, Austria. p. 34. Retrieved 2011-07-29. Empty statement: ; // ; is a terminator, not a separator
  6. ^ Kidwell, Carol (2004). Pietro Bembo: Lover, Linguist, Cardinal. Montreal: McGill-Queen's University Press. pp. 13–20. ISBN 978-0-7735-7192-1. Retrieved 2016-01-11.
  7. ^ Truss 2004, p. 111
  8. ^ Truss 2004, p. 77.
  9. ^ Humez, Alexander; Humez, Nicholas (2008-10-02). On the Dot: The Speck That Changed the World. Oxford University Press. ISBN 9780190295943. Jonson.
  10. ^ The Cambridge Grammar of the English Language, Chapter 19, § 7.
  11. ^ One book/five ways : the publishing procedures of five university presses. USA: The Association of American University Presses. 1978. p. 276 – via Internet Archive. COLONS AND SEMI-COLONS Should be preceded by a hair space only.
  12. ^ Spencer, Dave (15 February 2011). "Review". glyphic.design (review of The Chicago Manual of Style, 16th edition). Retrieved 28 August 2019.
  13. ^ "Purdue OWL: Commas". purdue.edu.
  14. ^ "California Penal Code § 15". California Office of Legislative Counsel. 1872. Retrieved 23 September 2020.
  15. ^ Paine, Stephen W. (1961). Beginning Greek a Functional Approach. Oxford University Press. p. 13.
  16. ^ Truss 2004, p. 111
  17. ^ Truss 2004, p. 107.
  18. ^ Truss 2004, pp. 88, 108–109.
  19. ^ MacIntyre, Ben (19 November 2005). "Is it worth busting your (Lynne) truss over a comma with a hat on?". The Times. London.
  20. ^ Vonnegut, Kurt (2006). A Man Without a Country. London, U.K.: Bloomsbury. p. 23. ISBN 0747584060. OCLC 494234841.
  21. ^ Glausser, Wayne (2019). "What Do Semicolons Mean? Historical Analysis and an Interpretive Experiment". Style. 53 (3): 308–325. doi:10.1353/sty.2019.0022. ISSN 2374-6629.
  22. ^ http://std.dkuug.dk/jtc1/sc2/wg2/docs/n3664.pdf
  23. ^ IBM System/360 Operating System PL/I Language Specifications (PDF). IBM. July 1966. p. 14. C28-6571-3. Retrieved 2021-01-04. A statement, which is a string of characters, is always terminated by the special character, semicolon.
  24. ^ Meyer, Bertrand (1997). Object-Oriented Software Construction (Second ed.). p. 897. ISBN 978-0-13-629155-8.
  25. ^ Software Metrics: An Analysis and Evaluation, 1981, 324
  26. ^ a b Meyer, Bertrand. Principles of language design and evolution (PDF) (Technical report).
  27. ^ What Sucks About Erlang, Damien Katz, 9 March 2008
  28. ^ "CSS Syntax", W3Schools
  29. ^ "VMS Help – Ext File Specs, Using  File Specification Differences"
  30. ^ "Filename", microsoft.com, 31 May 2018
  31. ^ Steyer, Carly (7 July 2016). "RELIGION Global Semicolon Tattoo Trend Is A Sign Of Strength Among Faithful Individuals Dealing With Mental Health Problems". The Huffington Post. Retrieved 2016-10-02.

Sources

  • Gannon, J. D.; Horning, J. J. (1975). The impact of language design on the production of reliable software. Proceedings of the international conference on Reliable software. pp. 10–22. doi:10.1145/800027.808420.
  • Truss, Lynn (2004). Eats, Shoots & Leaves: The Zero Tolerance Approach to Punctuation. New York: Gotham Books. ISBN 1-59240-087-6.

Further reading

  • Collins, Paul (20 June 2008). "Has Modern Life Killed the Semicolon?". Slate. Retrieved 23 January 2019.
  • Hacker, Diana (2008). The Bedford Handbook (6th ed.). Boston: Bedford/St. Martin's. ISBN 978-0-312-41281-4.
  • Henley, Jon (3 April 2008). "The End of the Line?". The Guardian. London. Retrieved 23 January 2019.
  • Roberts, Sam (19 February 2008) [18 February 2008]. "Delegating the Semicolon in a Most Unlikely Location". The New York Times. p. B3 [as "Celebrating the Semicolon in a Most Unlikely Location"]. Retrieved 23 January 2019.
  • Watson, Cecelia (2019). Semicolon – The Past, Present, and Future of a Misunderstood Mark. HarperCollins. ISBN 978-0062853059.

By: Wikipedia.org
Edited: 2021-06-18 15:15:23
Source: Wikipedia.org