Never confuse education with intelligence, you can have a PhD and still be an idiot.
- Richard Feynman -


From Juneday education
Jump to: navigation, search

Curly-braces (or curly brackets) { and } are a type of parentheses often used in programming languages (and in the command line shell).

It has many names:


  • braces
  • French brackets
  • curly brackets
  • definite brackets
  • swirly brackets
  • curly braces
  • birdie brackets
  • Scottish brackets
  • squirrelly brackets
  • gullwings
  • seagulls
  • squiggly brackets
  • twirly brackets
  • Tuborg brackets (DK)
  • accolades (NL)
  • pointy brackets
  • third brackets
  • fancy brackets
  • M Brace.


  • klammerparentes
  • spetsparentes
  • krullparentes
  • måsvingar
  • ackolad

The significance of the curly braces in a programming language are usually grouping code together, typically in a so called block. In such cases, you can read the left curly as "begin" and the right curly as "end":

if (numberOfStudents < classRoomCapacity) { //begin
} // end

In some languages, you can also use the curlies as delimiters for a list, like an array in Java:

int[] firstPrimes = { 2, 3, 5, 7, 11 };

Wikipedia has an article of various kinds of brackets (Enligsh) (Swedish Wikipedia page on Parentes)