8

I'm really confused about it, sometimes I read something and it refers to {} as curly braces and sometimes to curly brackets, what is the difference between those two terms? Are they referring to the same thing?

Jasper
  • 24,268
  • 4
  • 54
  • 86
Zignd
  • 183
  • 1
  • 6

2 Answers2

8

Braces: (also known as curly brackets, or curly braces)

enter image description here

Yes, they are the same thing.

And, actually, there are many names for it. According to Wikipedia,

{ } — braces (UK and US), flower brackets (India), French brackets, curly brackets, definite brackets, swirly brackets, curly braces, birdie brackets, Scottish brackets, squirrelly brackets, gullwings, seagulls, squiggly brackets, Tuborg brackets (DK), accolades (NL), pointy brackets, or fancy brackets

Damkerng T.
  • 27,174
  • 10
  • 70
  • 161
1

Since I can answer but not comment on the answer, let me rephrase this as a new answer:

See the above mentioned Wikipedia article.

A brace is a curly bracket, but not all brackets are braces. Think of bracket as the general term for the opening and closing things, and brace (or curly bracket) as the special characters {}

(), [] and <> are also brackets, but no braces.

  • () are parentheses or round brackets
  • [] are brackets or square brackets
  • <> are chevrons or angle brackets
Glorfindel
  • 14,824
  • 15
  • 69
  • 76
Sven Brunk
  • 21
  • 2