- Order:
- Duration: 2:44
- Published: 2008-07-14
- Uploaded: 2010-08-25
- Author: CharlyONeills
Brackets are tall punctuation marks used in matched pairs within text, to set apart or interject other text. In the United States, "bracket" usually refers specifically to the "square" or "box" type; in British usage it normally refers to the "round" type, which is called a parenthesis mark in American usage.
In American usage, parentheses are usually considered separate from other brackets, and calling them "brackets" at all is unusual even though they serve a similar function. In more formal usage "parenthesis" may refer to the entire bracketed text, not just to the punctuation marks used (so all the text in this set of round brackets may be said to be a parenthesis or a parenthetical).
Parentheses may be used in formal writing to add supplementary information, such as "Sen. John McCain (R., Arizona) spoke at length." They can also indicate shorthand for "either singular or plural" for nouns – e.g., "the claim(s)" – or for "either masculine or feminine" in some languages with grammatical gender.
Parenthetical phrases have been used extensively in informal writing and stream of consciousness literature. Of particular note is the southern American author William Faulkner (see Absalom, Absalom! and ) as well as poet E. E. Cummings. Parentheses have historically been used where the dash is currently used – that is, in order to depict alternatives, such as "parenthesis)(parentheses". Examples of this usage can be seen in editions of Fowler's.
Parentheses may also be nested (with one set (such as this) inside another set). This is not commonly used in formal writing [though sometimes other brackets (especially parentheses) will be used for one or more inner set of parentheses (in other words, secondary {or even tertiary} phrases can be found within the main sentence)].
Any punctuation inside parentheses or other brackets is independent of the rest of the text: "Mrs. Pennyfarthing (What? Yes, that was her name!) was my landlady." In this usage the explanatory text in the parentheses is a parenthesis. (Parenthesized text is usually short and within a single sentence. Where several sentences of supplemental material are used in parentheses the final full stop would be within the parentheses. Again, the parenthesis implies that the meaning and flow of the text is supplemental to the rest of the text and the whole would be unchanged were the parenthesized sentences removed.)
Parentheses in mathematics signify a different precedence of operators. Normally, 2 + 3 × 4 would be 14, since the multiplication is done before the addition. On the other hand (2 + 3) × 4 is 20, because the parentheses override normal precedence, causing the addition to be done first. Some authors follow the convention in mathematical equations that, when parentheses have one level of nesting, the inner pair are parentheses and the outer pair are square brackets. Example:
:
A related convention is that when parentheses have two levels of nesting, braces are the outermost pair.
Parentheses are also used to set apart the arguments in mathematical functions. For example, f(x) is the function f applied to the variable x. In the Cartesian coordinate system parentheses are used to denote a set of coordinates; so (4, 7) may represent the point located at 4 on the x-axis and 7 on the y-axis. Parentheses may also represent intervals; (0, 5), for example, is the interval between 0 and 5, not including 0 or 5.
Parentheses may also be used to represent a binomial coefficient.
Parentheses are used in computer programming, especially in the C programming language and similar languages, to pass parameters or arguments to functions or methods such as in the following example:
printf("hello, world\n");
The bracketed expression "[sic]" is used to indicate errors that are "thus in the original"; a bracketed ellipsis [...] is often used to indicate deleted material; bracketed comments indicate when original text has been modified for clarity: "I'd like to thank [several unimportant people] and my parentals [sic] for their love, tolerance [...] and assistance [emphasis added]".
Brackets are used in mathematics in a variety of notations, including standard notations for intervals, commutators, the floor function, the Lie bracket, the Iverson bracket, and matrices.
In translated works, brackets are used to signify the same word or phrase in the original language to avoid ambiguity. For example: He is trained in the way of the open hand [karate].
When nested parentheses are needed, parentheses are used as a substitute for the inner pair of brackets within the outer pair. When deeper levels of nesting are needed, convention is to alternate between parentheses and brackets at each level.
In linguistics, phonetic transcriptions are generally enclosed within brackets, often using the International Phonetic Alphabet, while phonemic transcriptions typically use paired slashes.
Brackets can also be used in chemistry to represent the concentration of a chemical substance or to denote a complex ion.
Brackets can be used in computer programming to access array elements, especially in C-like languages. They are used in programming manuals to denote missing or optional parameters.
Brackets are also used for delimiting IPv6 addresses in URL. Sample URL should look like:
ldap://[2001:db8:3c4d:15::abcd:ef12]
http://[2001:db8:3c4d:15::abcd:ef12]:8080
Brackets (called move-left symbols or move right symbols) are added to the sides of text in proofreading to indicate changes in indentation:
Brackets are used to denote parts of the text that need to be checked when preparing drafts prior to finalizing a document. They often denote points that have not yet been agreed to in legal drafts and the year in which a report was made for certain case law decisions.
The html entities for the brackets are [ and ]
Presumably due to the similarity of the words brace and bracket (although they do not share an etymology), many people mistakenly treat brace as a synonym for bracket. Therefore, when it is necessary to avoid any possibility of confusion, such as in computer programming, it may be best to use the term curly bracket rather than brace. However, general usage in North American English favours the latter form. Indian programmers often use the name "flower bracket".
Braces are often used in internet communities and through instant messaging to indicate hugging.
In Classical Mechanics curly brackets are often also used to denote the Poisson bracket between two quantities. It is defined as follows:
:
Chevrons (; Unicode U+27E8 and U+27E9; and others, see below) are often used to enclose highlighted material. Some dictionaries use chevrons to enclose short excerpts illustrating the usage of words.
In computing, the less-than (<) and greater-than (>) symbols are regularly used in place of angled brackets and, as such, these symbols are often referred to as angled brackets.
In physical sciences, chevrons are used to denote an average over time or another continuous parameter. For example,
:
The inner product of two vectors is commonly written as , but the notation (a, b) is also used.
In mathematical physics, especially quantum theory, it is common to write the inner product between elements as , as a short version of , or , where is an operator. This is known as Dirac notation or bra-ket notation.
In set theory, chevrons or parentheses are used to denote ordered pairs and other tuples, whereas curly brackets are used for unordered sets.
In linguistics, chevrons indicate orthography, as in "The English word is spelled ." In epigraphy, they may be used for mechanical transliterations of a text into the Latin alphabet.
In textual criticism, and hence in many editions of poorly transmitted works, chevrons denote sections of the text which are illegible or otherwise lost; the editor will often insert his own reconstruction where possible within them.
Chevrons are infrequently used to denote dialogue that is thought instead of spoken, such as: :
The mathematical or logical symbols for greater-than (>) and less-than (<) are inequality operators, and are not punctuation marks when so used. Nevertheless, since true chevrons are not available on a typical computer keyboard, the "less than" and "greater than" symbols are often used instead. These are often loosely referred to as chevrons when used in this way. For example, the symbols < and > are often used to set apart URLs in text, such as "I found it on Example.com
Single and double pairs of comparison operators (<<, >>) (meaning much smaller than and much greater than) are sometimes used instead of guillemets (, ) (used as quotation marks in many languages) when the proper glyphs are not available.
In comic books, chevrons are often used to mark dialogue that has been translated notionally from another language; in other words, if a character is speaking another language, instead of writing in the other language and providing a translation, one writes the translated text within chevrons. Of course, since no foreign language is actually written, this is only notionally translated.
Chevron-like symbols are part of standard Chinese, and Korean punctuation, where they generally enclose the titles of books: and or and for traditional vertical printing, and and or and for horizontal printing.
These various bracket characters are frequently used in many computer languages as operators or for other syntax markup. The more common uses follow.
a*(b+c)
has subexpressions a
and b+c
, whereas a*b+c
has subexpressions a*b
and c
substring($val,10,1)
(cons a b)
queue[3]
[5, 10, 15]
These symbols are used in pairs as if they are brackets,
<div>
<>
denotes an inequality comparison<<
or >>
they may represent bit shift operators, or in C++ also as stream input/output operatorsA common error in programming is mismatching braces; accordingly, many IDEs have braces matching to highlight matching pairs.
In quantum mechanics, chevrons are also used as part of Dirac's formalism, bra-ket notation, to note vectors from the dual spaces of the Bra (⟨A|) and the Ket (|B⟩). Mathematicians will also commonly write <a,b> for the inner product of two vectors. In statistical mechanics, Chevrons denote ensemble or time average. Chevrons are used in group theory to write group presentations, and to denote the subgroup generated by a collection of elements.
In group theory and ring theory, brackets denote the commutator. In group theory, the commutator
Various notations, like the vinculum have a similar effect to brackets in specifying order of operations, or otherwise grouping several characters together for a common purpose.
In the Z formal specification language, braces define a set and chevrons define a sequence.
When quoted material is in any way altered, the alterations are enclosed in brackets within the quotation. For example: Plaintiff asserts his cause is just, stating, "[m]y causes is just." While in the original quoted sentence the word "my" was capitalized, it has been modified in the quotation and the change signalled with brackets. Similarly, where the quotation contained a grammatical error, the quoting author signalled that the error was in the original with "[sic]" (Latin for "thus"). (California Style Manual, section 4:59 (4th ed.))
(What's your name?)
Also in roleplaying, it is sometimes preferred to use double parenthesis for OOC, or sometimes brackets, depending on personal preference.
Category:Punctuation Category:Mathematical notation Category:Typography
This text is licensed under the Creative Commons CC-BY-SA License. This text was originally published on Wikipedia and was developed by the Wikipedia community.