1 a category falling within certain defined limits
2 either of two punctuation marks ([ or ]) used to enclose textual material [syn: square bracket]
3 either of two punctuation marks (`<' or `>') sometimes used to enclose textual material [syn: angle bracket]
4 an L-shaped support projecting from a wall (as to hold a shelf)
1 support with brackets; "bracket bookshelves"
2 place into brackets; "Please bracket this remark" [syn: bracket out]
3 classify or group
- Rhymes: -ækɪt
- Item attached to a wall to hold up a shelf.
- Generically any of "(", ")", "[", "]", "", and, in the area of computer languages, "".
- "(" and ")" specifically, the other forms above requiring adjectives for disambiguation.
- (Technical) "[" and "]" specifically - opposed to the other forms which have their own technical names.
- one of several ranges
- tax bracket, age bracket
- ("(" and ")"): parenthesis
item attached to a wall to hold up a shelf
generically any of "(", ")", "[", "]", "", ""
"(" and ")"
technical: "[" and "]" specifically
sport: printed diagram of games in a tournament
sport: prediction of the outcome of games in a tournament
one of several ranges of numbers
- Swedish: intervall
- To bound on both sides, to surround as enclosing with brackets.
- I tried to hit the bullseye by first bracketing it with two shots and then splitting the difference with my third, but I missed.
To bound on both sides, to surround as enclosing with brackets
Brackets are punctuation marks used in pairs to set apart or interject text within other text. In computer science, the term is sometimes said to strictly apply to the square or box type.
There are four main types of brackets:
- round brackets or parentheses: ( )
- square brackets or box brackets: [ ]
- curly brackets or squiglys:
- angle brackets or chevrons: < > or
All these forms may be used according to typographical conventions that may vary from publication to publication and may vary even more from language to language. Some typical uses in English texts follow.
The angle bracket was the earliest type to appear in English. Desiderius Erasmus coined the term lunula to refer to the rounded parentheses (), recalling the round shape of the moon.
UsageIn addition to referring to the class of all types of brackets the unqualified word bracket is most commonly used to refer to a specific type of bracket. In modern American usage this is usually the square bracket whereas in modern British usage it is usually the parenthesis (round bracket).
In American usage parentheses are usually considered separately 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).
Parentheses ( )Parentheses (singular parenthesis)—sometimes called round brackets, curved brackets, oval brackets, or just brackets; or, colloquially, parens, or fingernails— contain material that could be omitted without destroying or altering the meaning of a sentence.
Parentheses may be used in formal writing to add supplementary information, such as “Sen. Edward Kennedy (D., Massachusetts) spoke at length.” They can also indicate shorthand for “either singular or plural” for nouns—e.g., “the claim(s)”.
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 the Quentin section of The Sound and the Fury). In most writing overuse of parentheses is usually a sign of a badly structured text. A milder effect may be obtained by using a pair of commas as the delimiter. If the sentence contains commas for other purposes visual confusion may result.
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 square brackets] will be used for one or more inner set of parentheses [in other words, secondary 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. (It is most common for the parenthesized text to be within a single sentence but also common for an entire sentence, or even several sentences, of supplemental material to be in parenthesis. In this case even the final full stop would be within the parentheses. Again, the parenthesis implies that the meaning and flow of the text as a whole would be unchanged were the parenthesized sentences removed.)
Parentheses in mathematics signify a different precedence of operators. 2 + 3 × 4 would be 14, for example, since the multiplication is done before the addition. (2 + 3) × 4 is 20, on the other hand, because the parentheses override normal precedence, causing the addition to be done first. They are also used to set apart the arguments in mathematical functions. f(x), for example, is the function f applied to the variable x. Parentheses denote a set of coordinates in the coordinate system. (4,7), for example, 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 can also represent multiplication, as in the instance of 2 (3) = 6. 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. Ex: [5−(7+3)]+4=x. 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 example below: getAverage(2,7,5);
Box brackets or square brackets [ ]
Square brackets enclose explanatory or missing material, especially in quoted text. “I appreciate it [the honor], but I must refuse”, for example. Or, “the future of psionics [see definition] is in doubt”.
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]”.
Square brackets are used in mathematics in a variety of notations, including standard notations for intervals, commutators, the Lie bracket, and the Iverson bracket.
Square brackets are also used as parentheses within parentheses (alternating between parentheses and square brackets as nesting gets deeper [despite the alternative use of curly braces for this purpose (as mentioned earlier)]).
In the International Phonetic Alphabet square brackets indicate a phonetic transcription (as opposed to a phonemic one).
Square brackets can also be used in chemistry to represent the concentration of a chemical substance or to denote a complex ion.
Square 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.
Square brackets (called move-left symbols or move right symbols) are added to the sides of text in proofreading to indicate changes in indentation:
Square 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 square brackets are [ and ]
Curly brackets or braces
Curly brackets (also called braces) are sometimes used in prose to indicate a series of equal choices: “Select your animal and follow me”. They are used in specialized ways in poetry and music (to mark repeats or joined lines). The musical terms for this mark joining staves are “accolade” and “brace.” In mathematics they delimit sets. In many programming languages, they enclose groups of statements. Such languages are therefore called curly bracket languages.
Presumably due to the similarity of the words brace and bracket (although they do not share an etymology), many people casually 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. The term curly braces is redundant since no other type of brace exists. Indian programmers often use the name “flower bracket”.
Curly brackets are often used in internet communities and through instant messaging to indicate hugging.
Angle brackets or chevrons
Angle brackets (; Unicode U+27E8 and U+27E9; and others, see below) are often used to enclose highlighted material. Some dictionaries use angle brackets to enclose short excerpts illustrating the usage of words. In physical sciences, angle brackets are used to denote an average over time or another continuous parameter. For example,
- \left\langle V(t)^2 \right\rangle = \lim_ \frac\int_^ V(t)^2t.
In textual criticism, and hence in many editions of poorly transmitted works, angle brackets denote sections of the text which are illegible or otherwise lost; the editor will often insert his own reconstruction where possible within them.
Angle brackets are infrequently used to denote dialogue that is thought instead of spoken, such as:
Single and double angle brackets or pairs of comparison operators (<<, >>) are sometimes used instead of guillemets (, ) (used as quotation marks in many languages) when the proper glyphs are not available.
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 angle brackets 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 angle brackets 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 ”. It may also often be found to indicate an e-mail address, such as “This photo is copyrighted by John Smith ”, and is the computer-readable form for such in message headers as specified by RFC 2822.
Chevrons 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.
In comic books, angle brackets 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 angle brackets. Of course, since no foreign language is actually written, this is only notionally translated.
Angle brackets can also be used to indicate an action or status (eg. or ), particularly in online, real-time text-based discussions (instant messaging, bulletin boards, etc). (Here, asterisks can also be used to signify an action.)
- Opening and closing parentheses correspond to ASCII and Unicode characters 40 and 41, or U+0028 and U+0029, respectively.
- For square brackets corresponding values are 91 and 93, or U+005B and U+005D.
- For curly brackets, 123 and 125, or U+007B and U+007D.
- True angle brackets are available in Unicode at code points U+27E8 and U+27E9 (for mathematical use) and or U+3008 and U+3008 (for East Asian languages). A third set of angle brackets are encoded at U+2329 and U+232A, but officially "discouraged for mathematical use" because they are canonically equivalent to the CJK code points U+300x and thus likely to render as double-width symbols.
- The less-than and greater-than symbols can be found in both Unicode and ASCII at code points 60 and 62, or U+003C and U+003E.
These various bracket characters are frequently used in many computer languages as operators or for other syntax markup. The more common uses follow.
Uses of “(” and “)”
- are often used to define the syntactic structure of expressions, overriding operator precedence: a*(b+c) has subexpressions a and b+c, whereas a*b+c has subexpressions a*b and c
- contain the parameters or arguments to functions, or may denote the invocation of a function or function-like construct: substring($val,10,1)
- in Lisp they open and close s-expressions and therefore function applications: (cons a b)
- in Fortran-family languages, they are also used for array references
- in the Perl programming language, they are used to define lists, static array-like structures; this idiom is extended to their use as containers of subroutine (function) arguments
- in Python they are used to define tuples (immutable ordered lists)
- in Tcl they are used to enclose the name of an element of an associative array variable
Uses of “[” and “]”
- refer to elements of an array or associative array, and sometimes to define the number of elements in an array: queue
- may be used to define a literal anonymous array or list: [5, 10, 15]
- in most regular expression syntaxes square brackets denote a character class: a set of possible characters to choose from
- in Tcl, they enclose a subscript to be evaluated and the result substituted
Uses of “”
- are used in some programming languages to define the beginning and ending of blocks of code or data. Languages which use this convention are said to belong to the curly bracket family of programming languages
- are used to represent certain type definitions or literal data values, such as a composite structure or associative array
- in math they enclose elements of a set and denote a set
- in Pascal they define the beginning and ending of comments
- in most regular expression syntaxes, they are used as quantifiers, matching n repetitions of the previous group
- in Perl they are also used to refer to elements of an associative array
- in Tcl they enclose a string to be substituted without any internal substitutions being performed
- in mIRC slang, two braces with the enclosing one first represent a kiss: }
accouple, accumulate, advocate, agglutinate, ally, alpenstock, amass, analyze, apply, arm, articulate, assemble, associate, athletic supporter, back, backbone, backing, band, bandeau, bearer, bind, blood, bond, bra, brace, bracer, branch, brassiere, bridge, bridge over, buttress, cane, carrier, caste, category, cement, cervix, chain, clan, clap together, class, classification, classify, collate, collect, combine, comprise, concatenate, conglobulate, conjoin, conjugate, connect, console, contrast, copulate, corbel, correlate, corset, couple, couple up, cover, crook, crutch, decline, division, double-harness, double-team, draw a parallel, embrace, encompass, equate, estate, foundation garment, fulcrum, gather, girdle, glue, grade, group, grouping, guy, guywire, head, heading, hyphenate, identify, include, inflect, interrelate, jock, jockstrap, join, kin, knot, label, lay together, league, level, link, lump together, mainstay, maintainer, mark, marry, marshal, mass, mast, match, mate, merge, mobilize, neck, order, pair, pair off, parallel, parallelize, parenthesize, parse, piece together, pigeonhole, point, position, predicament, prop, punctuate, put together, race, rank, rating, reinforce, reinforcement, reinforcer, relate, relativize, rest, resting place, rigging, roll into one, rubric, section, sept, set, shelf, shoulder, shroud, solder, span, spine, splice, sprit, staff, standing rigging, station, status, stave, stay, stick, stick together, stiffener, strain, stratum, strengthener, subdivision, subgroup, suborder, support, supporter, sustainer, take in, tape, team, team up, tie, title, unify, unite, upholder, walking stick, wed, weld, yoke