Alternate names for brackets
Parentheses are sometimes called round brackets, curved brackets or, colloquially, parens, or fingernails. John Lennard (in "The exploitation of parentheses in English printed verse") usefully coined the term lunula to refer specifically to the opening curved bracket, the closing curved bracket and the textual contents between.
Square brackets are called crochets in Great Britain.
Braces are often called curly brackets. Presumably due to the similarity of the word "brace" and "bracket", many people apparently (and incorrectly) believe that "brace" is a synonym for "bracket". Therefore, when it is necessary to avoid any possibility of confusion, e.g., in computer programming, it may be best to use the term "curly bracket" rather than "brace". However, general usage in English favors the latter form. The term curly braces is redundant since that is the only kind of braces there are.
Brackets in computing
- Opening and closing parentheses correspond to Unicode and ASCII characterss 40 and 41, or 0x0028 and 0x0029, respectively.
- For square brackets corresponding values are 91 and 93, or 0x005B and 0x005D.
- For braces, 123 and 125, or 0x007B and 0x007D.
- And for angle brackets, 60 and 62, or 0x003C and 0x003E.
Also, in many programming languages:
- "(" and ")" are used to contain the arguments to functions: substring($val,10,1). Parentheses are so ubiquitous in the Lisp programming language that the name is said to be an acronym for "Lots of Irritating Superfluous Parentheses". They may also be used to indicate the start and end of lists.
- "[" and "]" are used to define elements in an array: $animals["goat"].
- "{" and "}" are used to define the beginning and ending of blocks of code. To complicate things, in the Pascal programming language, "{" and "}" define the beginning and ending of comments.
- "<" and ">" are used in SGML (and other formats based on SGML, such as HTML and XML), to enclose code tags.
In the Wikipedia editor, and some other Wikis,