Curly-bracket style goes way back before C. [[BCPL]] was the first language to use a curly bracket style, for outlining multi-statement function bodies. [[Ken Thompson]] gave the feature more glory in [[B programming language|B]]. Because [[C programming language|C]] was initially designed after B, C has retained the bracket style of B. MostMany languages that came after C ([[C++]], [[Java (programming language)|Java]], [[ECMAScriptJavaScript]] and its populargeneralized descendantstandard [[JavaScriptECMAScript]], [[C Sharp programming language|C#]], [[D (programming language)|D]], etc.) keep the style. [[Pico programming language|Pico]] is a non-C descendant that also uses this style.
AlongOne withcommon part of curly bracket style is the popularcommon style of terminating a statement with a semicolon (;), which allowsis one way for languages thatto ignore whitespace. BCPL and Pico, do not have this rule. Thus a newline is used as a statement terminator in such languages. The [[Pico indent style]] is then used, as below (BCPL):