Tuesday, February 26, 2013

Know Thy Brackets


Programming languages often use various types of brackets for grouping and delimiting data and code. It's no surprise that I'm slightly annoyed when people don't use the right terms for the different kinds of brackets. It makes for some confusing communications, and it has become a pet peeve.

So... as a canonical reference to everyone I know, these are the correct names. From this point forward, I reserve the right to use non-violent forms of criticism (including glares, scowls, smirks, and grimaces) if you do not use the right terms.

  • ( ) — "parentheses" or "round brackets"
  • [ ] — "square brackets", "hard brackets", or just "brackets"
  • { } — "curly braces", "curly brackets", or just "braces"
  • < > — "angle brackets" or "pointy brackets"

2 comments:

Unknown said...

a nerd of my own heart. i literally started crafting a post about a few grammar mistakes i keep seeing that make me want to rip my nails off... sheesh...

Mishqueen said...

For being a nerd, I would have expected you to also include an explanation of when to use which brackets. :)