Showing posts with label programming. Show all posts
Showing posts with label programming. Show all posts

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"