Mark: |
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, such as when restating the preceding idea with a different expression. 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 items in a list, particularly when the elements of the list themselves have embedded commas.[3] The semicolon is one of the least understood of the standard marks, and is not frequently 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. HistoryIn 1496, |
the semicolon is attested in Pietro Bembo's book printed by Aldo Manuzio.[5] [6] The punctuation also appears in later writings of Bembo. Moreover, it is used in 1507 by Bartolomeo Sanvito, who was close to Manuzio's circle.
In 1561, Manuzio's grandson, also called Aldo Manuzio, explains the semicolon's use with several examples in Orthographiae ratio. In particular, Manuzio motivates the need for punctuation (interpungō) to divide (distinguō) sentences and thereby make them understandable. The comma, semicolon, colon, and period are seen as steps, ascending from low to high; the semicolon thereby being an intermediate value between the comma and colon . Here are four examples used in the book to illustrate this:[7]
Publica, privata; sacra, profana; tua, aliena.
Public, private; sacred, profane; thine, another's.
Ratio docet, si adversa fortuna sit, nimium dolendum non esse; si secunda, moderate laetandum.
Reason teaches, if fortune is adverse, not to complain too much; if favorable, to rejoice in moderation.
Tu, quid divitiae valeant, libenter spectas; quid virtus, non item.
You, what riches are worth, gladly consider; what virtue (is worth), not so much.
Etsi ea perturbatio est omnium rerum, ut suae quemque fortunae maxime paeniteat; nemoque sit, quin ubivis, quam ibi, ubi est, esse malit: tamen mihi dubium non est, quin hoc tempore bono viro, Romae esse, miserrimum sit.
Although it is a universal confusion of affairs such that everyone regrets their own fate above all others; and there is no one, who would not rather anywhere else in the world, than there, where he is, prefer to be: yet I have no doubt, at the present time for an honest man, to be in Rome, is the worst form of misery.
Around 1580, Henry Denham starts using the semicolon "with propriety" for English texts, and more widespread usage picks up in the next decades.[8]
Around 1640, in Ben Jonson's book The English Grammar, the character is described as "somewhat a longer breath" compared to the comma. The aim of the breathing, according to Jonson, is to aid understanding.[9]
In 1644, in Richard Hodges' The English Primrose, it is written:[10]
At a comma, stop a little;[...]At a semi-colon, somewhat more;[...]At a colon, a little more than the former;[...]At a period, make a full stop;
In 1762, in Robert Lowth's A Short Introduction to English Grammar, a parallel is drawn between punctuation marks and rest in music:[11]
The Period is a pause in quantity or duration double of the Colon; the Colon is double of the Semicolon; and the Semicolon is double of the Comma. So that they are in the same proportion to one another as the Sembrief, the Minim, the Crotchet, and the Quaver, in Music.
In 1798, in Lindley Murray's English Grammar, the semicolon is introduced as follows:[12]
The Semicolon is used for dividing a compound sentence into two or more parts, not so closely connected as those which are separated by a comma, nor yet so little dependent on each other, as those which are distinguished by a colon.The semicolon is sometimes used, when the preceding member of the sentence does not of itself give a complete sense, but depends on the following clause; and sometimes when the sense of that member would be complete without the concluding one; as in the following instances.
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. In modern English orthography, the semicolon falls between terminal marks and the comma; its strength is equal to that of the colon.[13]
The plural of semicolon in English is semicola or semicolons.
The most common use of the semicolon is to join two independent clauses without using a conjunction like "and".[14] Semicolons are followed by a lower case letter, unless that letter would ordinarily be capitalised 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.[15] 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.[16]
Applications of the semicolon in English include:
In a list or sequence, if even one item needs its own internal comma, use of the semicolon as the separator throughout that list is justified, as shown by this example from the California Penal Code:
In Arabic, the semicolon is called fasila manqoota (Arabic: فاصلة منقوطة|links=no) which means literally "a dotted comma", and is written inverted . In Arabic, the semicolon has several uses:
In Greek and Church Slavonic, the question mark looks exactly the way a semicolon looks in English, similar to the question mark used in Latin.[18] To indicate a long pause or to separate sections that already contain commas (the semicolon's purposes in English), Greek uses, but extremely rarely, the interpunct (Greek, Modern (1453-);: {{math|άνω τελεία).
Church Slavonic with a question mark: (Where is the one who is born king of the Jews? –)
Greek with a question mark: (What is an interpunct?)
In French, a semicolon (point-virgule, literally "dot-comma") is a separation between two full sentences, used where neither a colon nor a comma would be appropriate. The phrase following a semicolon has to be an independent clause, related to the previous one but not explaining it. (When the second clause explains the first one, French consistently uses 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.
Some authors have avoided and rejected the use of the semicolon throughout their works. Lynne Truss stated:
In response to Truss, Ben Macintyre, a columnist in The Times, wrote:
Semicolon use in British fiction has declined by 25% from 1991 to 2021.[19]
In Unicode, the semicolon is encoded at ; this is the same value as it had in ASCII and ISO 8859-1.
Unicode contains encoding for several other semicolon or semicolon-like characters:
In computer programming, the semicolon is often used to separate multiple statements (for example, in Perl,[21] Pascal,[22] and SQL;[23] see Pascal: Semicolons as statement separators). In other languages, semicolons are called terminators[24] and are required after every statement (such as in PL/I,[25] Java,[26] and the C[27] family). Today semicolons as terminators has largely won out, but this was a divisive issue in programming languages from the 1960s into the 1980s.[28] An influential and frequently cited study in this debate was, 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."[29] The study has been criticized as flawed by proponents of semicolon as a separator,[30] 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,[31] Python,[32] R,[33] Eiffel,[34] and Go,[35] 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, as in Go and R). As languages can be designed without them, semicolons are considered an unnecessary nuisance by some.
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[36] 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.[37]
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[38] and to separate axes when indexing multidimensional arrays, for example, matrix[2;3]
.[38]
Other languages (for instance, some assembly languages[39] and LISP[40] dialects, CONFIG.SYS and INI files) use semicolons to mark the beginning of comments.
Example C code:
Or in JavaScript:
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.
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 Lua,[41] semicolons or commas can be used to separate table elements.
In MATLAB and GNU Octave,[42] 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.[43] The declarations of a style attribute in Cascading Style Sheets (CSS) are separated and terminated with semicolons.[44]
The file system of RSX-11 and OpenVMS, Files-11, uses semicolons to indicate a file's version number.[45] The semicolon is permitted in long filenames in the Microsoft Windows file systems NTFS and VFAT, but not in its short names.[46]
In some delimiter-separated values file formats, the semicolon is used as the separator character, as an alternative to comma-separated values.
In mathematical derivations, a semicolon is used to separate expressions in a sequence, similar to its use in spoken English, and may be considered either punctuation for the mathematical expressions, or as punctuation for the words spoken when reading the expressions. For example, completing the square:
~~Given~ ax2+bx+c=0 ~and~ a\ne0 ;
\left[x2+2
b | |
2a |
x+\left(
b | |
2a |
\right)2\right]-\left(
b | |
2a |
\right)2+
c | |
a |
=0 ~for all~ a\ne0,~~~and any~ b,c ;
\left[x+
b | |
2a |
\right]2=\left(
b | |
2a |
\right)2-
c | |
a |
;
l|x+
b | |
2a |
r|=\sqrt{ \left(
b | |
2a |
\right)2-
c | |
a |
~~} ~if~ x+
b | |
2a |
\inR ~and~ \left(
b | |
2a |
\right)2-
c | |
a |
\ge0~.
f(x1, x2, ... ; a1, a2, ...) ,
In differential geometry and tensor analysis 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:
A;B = \{(x,z):\existsy xAy \land yBz\}~.
In piecewise functions, a semicolon or comma may follow the subfunction or subdomain; the
if
for
The Humphrey point is sometimes used as the "decimal point" in duodecimal numbers: 54;612 equals 64.510.
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 an 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 (most commonly done on the wrist). While some consider this to be faith-based,[48] the movement is in general faith-neutral and is inclusive for all people.
Sources