# Whats the difference between \[ \] and ( )?

**URL:** <https://boards.straightdope.com/t/whats-the-difference-between-and/1010659>\
**Category:** Factual Questions\
**Created:** [November 23, 2024, 9:20am UTC](https://boards.straightdope.com/t/whats-the-difference-between-and/1010659 "2024-11-23T09:20:44Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Loggins](https://avatars.discourse-cdn.com/v4/letter/l/74df32/32.png) [@Loggins](https://boards.straightdope.com/u/Loggins)\
**Post date:** [November 23, 2024, 9:20am UTC](https://boards.straightdope.com/t/whats-the-difference-between-and/1010659/1 "2024-11-23T09:20:44Z")

</div>

I probably learned in school, but have forgotten. I see them used quite arbitrarily. I never use [ since i dont know when to use it.

---

<div class="post-metadata">

**Author:** ![GuanoLad](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/guanolad/32/42_2.png) [@GuanoLad](https://boards.straightdope.com/u/GuanoLad)\
**Post date:** [November 23, 2024, 9:44am UTC](https://boards.straightdope.com/t/whats-the-difference-between-and/1010659/2 "2024-11-23T09:44:22Z")

</div>

From [here](https://writingcenter.uagc.edu/brackets-braces):

> Do not confuse brackets [] with parentheses ( ). Parentheses are used to enclose additional information in your own writing; brackets are editorial marks used to insert comments into someone else’s words that you are quoting, or to insert material into a passage already in parentheses.

---

<div class="post-metadata">

**Author:** ![Loggins](https://avatars.discourse-cdn.com/v4/letter/l/74df32/32.png) [@Loggins](https://boards.straightdope.com/u/Loggins)\
**Post date:** [November 23, 2024, 9:46am UTC](https://boards.straightdope.com/t/whats-the-difference-between-and/1010659/3 "2024-11-23T09:46:22Z")

</div>

Aha! Explained. Can anyone give examples on both?

---

<div class="post-metadata">

**Author:** ![Richard\_Pearse](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/richard_pearse/32/13144_2.png) [@Richard\_Pearse](https://boards.straightdope.com/u/Richard_Pearse)\
**Post date:** [November 23, 2024, 10:29am UTC](https://boards.straightdope.com/t/whats-the-difference-between-and/1010659/4 "2024-11-23T10:29:29Z")

</div>

> [@Loggins](#):
>
> Aha! Explained. Can anyone give examples on both? [Parentheses vs brackets]

The above is an example of an editorial comment made to clarify a quote (I’m not sure how that fits with the SDMB rules on modifying quotes though).

---

<div class="post-metadata">

**Author:** ![Loggins](https://avatars.discourse-cdn.com/v4/letter/l/74df32/32.png) [@Loggins](https://boards.straightdope.com/u/Loggins)\
**Post date:** [November 23, 2024, 10:30am UTC](https://boards.straightdope.com/t/whats-the-difference-between-and/1010659/5 "2024-11-23T10:30:46Z")

</div>

Well done

---

<div class="post-metadata">

**Author:** ![Richard\_Pearse](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/richard_pearse/32/13144_2.png) [@Richard\_Pearse](https://boards.straightdope.com/u/Richard_Pearse)\
**Post date:** [November 23, 2024, 10:36am UTC](https://boards.straightdope.com/t/whats-the-difference-between-and/1010659/6 "2024-11-23T10:36:49Z")

</div>

The uses of parentheses are limited enough that if you don’t know whether you should be using them or not, the answer is almost certainly “no”.

---

<div class="post-metadata">

**Author:** ![Banksiaman](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/banksiaman/32/3334_2.png) [@Banksiaman](https://boards.straightdope.com/u/Banksiaman)\
**Post date:** [November 23, 2024, 10:45am UTC](https://boards.straightdope.com/t/whats-the-difference-between-and/1010659/7 "2024-11-23T10:45:29Z")

</div>

I prefer the square brackets - the change came when I had different keyboards for work desktop, work laptop and home laptop. You could never get into a good typing groove as they all had slightly different spacings, and shift keys (for parentheses) was one of the usual things that turned into typos when typing fast.

Changing to brackets avoided the need to do two completely unnecessary shifts. All the time I save on these and on fixing parentheses-based typos can be invested in self-improvement, not that perfection needs too much polish.

---

<div class="post-metadata">

**Author:** ![Irishman](https://avatars.discourse-cdn.com/v4/letter/i/b487fb/32.png) [@Irishman](https://boards.straightdope.com/u/Irishman)\
**Post date:** [November 23, 2024, 11:26am UTC](https://boards.straightdope.com/t/whats-the-difference-between-and/1010659/8 "2024-11-23T11:26:28Z")

</div>

I feel like I’ve had autoparse code ruin brackets here.

---

<div class="post-metadata">

**Author:** ![Alessan](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/alessan/32/465_2.png) [@Alessan](https://boards.straightdope.com/u/Alessan)\
**Post date:** [November 23, 2024, 11:32am UTC](https://boards.straightdope.com/t/whats-the-difference-between-and/1010659/9 "2024-11-23T11:32:42Z")

</div>

Parentheses are the internal monologue. Brackets are the narrator.

---

<div class="post-metadata">

**Author:** ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)\
**Post date:** [November 23, 2024, 11:46am UTC](https://boards.straightdope.com/t/whats-the-difference-between-and/1010659/10 "2024-11-23T11:46:53Z")

</div>

The first response (by @GuanoLad) is probably the answer to what the OP was asking about. But I’ll add that, in math, the difference depends on the context (what you’re using them for). Either can be used as grouping symbols, in which context they’re essentially interchangeable. But in other situations, only one is commonly used (e.g. round parentheses for ordered pairs that designnate (x, y) coordinates), or they mean different things (e.g. round parentheses on open intervals that do not include endpoints vs. square brackets on closed intervals that do include endpoints).

And of course, in computer programming/coding they are often used differently depending on what language you’re programming in.

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [November 23, 2024, 2:05pm UTC](https://boards.straightdope.com/t/whats-the-difference-between-and/1010659/11 "2024-11-23T14:05:20Z")

</div>

And then there are {curly braces}. Those are used quite frequently in math and computer coding, but I’m not even sure what they’d be used for at all, outside of those contexts.

> [@Thudlow\_Boink](#):
>
> or they mean different things (e.g. round parentheses on open intervals that do not include endpoints vs. square brackets on closed intervals that do include endpoints).

And notably, in this context, they can be and often are mismatched: An opening mark must still be paired with a closing mark, but it can be either kind of opening or closing mark. So, for instance, you could have an interval of [0,10), meaning all numbers that are greater than or equal to zero, but strictly less than ten.

---

<div class="post-metadata">

**Author:** ![Northern\_Piper](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/northern_piper/32/5304_2.png) [@Northern\_Piper](https://boards.straightdope.com/u/Northern_Piper)\
**Post date:** [November 23, 2024, 3:33pm UTC](https://boards.straightdope.com/t/whats-the-difference-between-and/1010659/12 "2024-11-23T15:33:49Z")

</div>

In Wikipedia, double brackets [[text]] are used to link to a different wikipedia article, while double braces {{ template }} inserts a template.

---

<div class="post-metadata">

**Author:** ![Pardel-Lux](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/pardel-lux/32/20182_2.png) [@Pardel-Lux](https://boards.straightdope.com/u/Pardel-Lux)\
**Post date:** [November 23, 2024, 3:50pm UTC](https://boards.straightdope.com/t/whats-the-difference-between-and/1010659/13 "2024-11-23T15:50:02Z")

</div>

I always use square brackets to indicate that I have left something out in a quotation: like this […]. It is important to show that you have left something out, but it is also important that what you leave out does not change the meaning of the quote. So turning the OP statement:

> I never use [ since i dont know when to use it.

into

> I […] use [since i […] know when to use it.

would be wrong, even if technically correctly executed.

---

<div class="post-metadata">

**Author:** ![Thudlow\_Boink](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/thudlow_boink/32/320_2.png) [@Thudlow\_Boink](https://boards.straightdope.com/u/Thudlow_Boink)\
**Post date:** [November 23, 2024, 4:18pm UTC](https://boards.straightdope.com/t/whats-the-difference-between-and/1010659/14 "2024-11-23T16:18:15Z")

</div>

> [@Pardel-Lux](#):
>
> I always use square brackets to indicate that I have left something out in a quotation: like this […]. It is important to show that you have left something out, but it is also important that what you leave out does not change the meaning of the quote.

Which is consistent with the SDMB rules.

> [@SDMB rules 9/12/2023](https://boards.straightdope.com/t/sdmb-rules-9-12-2023/990013/1):
>
> Normal editorial rules apply. You may indicate omitted portions of a quote by the use of ellipses “…” or devices such as [snip]. You may add text to clarify a word using square brackets (e.g., “her [the sister’s] friend”), but you may not add editorial comments or edit a quote to change the substantive meaning

---

<div class="post-metadata">

**Author:** ![Mangetout](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mangetout/32/19_2.png) [@Mangetout](https://boards.straightdope.com/u/Mangetout)\
**Post date:** [November 23, 2024, 5:53pm UTC](https://boards.straightdope.com/t/whats-the-difference-between-and/1010659/15 "2024-11-23T17:53:44Z")

</div>

Apropos of not very much, they’re all called ‘brackets’ in UK speech :- (brackets) [square brackets] {curly brackets}

I’m sure there are formal contexts in which people call them parentheses, brackets and braces here, but in general speech () are brackets. I mention this because it trips a few people up.

---

<div class="post-metadata">

**Author:** ![robby](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/robby/32/11048_2.png) [@robby](https://boards.straightdope.com/u/robby)\
**Post date:** [November 23, 2024, 5:59pm UTC](https://boards.straightdope.com/t/whats-the-difference-between-and/1010659/16 "2024-11-23T17:59:35Z")

</div>

In writing, I use brackets if I need to put a set of parentheses inside another set of parentheses.

(Like if I have a side note [or comment], for example.)

However, I’m not sure if this is standard usage or something I made up.

---

<div class="post-metadata">

**Author:** ![Alessan](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/alessan/32/465_2.png) [@Alessan](https://boards.straightdope.com/u/Alessan)\
**Post date:** [November 23, 2024, 8:42pm UTC](https://boards.straightdope.com/t/whats-the-difference-between-and/1010659/17 "2024-11-23T20:42:44Z")

</div>

> [@Thudlow\_Boink](#):
>
> Either can be used as grouping symbols, in which context they’re essentially interchangeable.

From what I remember from high school math, square brackets enclose parentheses, and curly brackets enclose square brackets. So you’d write:

{a[(b+c)(d+e)+f]-g}/h

---

<div class="post-metadata">

**Author:** ![Chronos](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/chronos/32/134_2.png) [@Chronos](https://boards.straightdope.com/u/Chronos)\
**Post date:** [November 23, 2024, 9:03pm UTC](https://boards.straightdope.com/t/whats-the-difference-between-and/1010659/18 "2024-11-23T21:03:48Z")

</div>

That’s the most common, but you might also use other arrangements sometimes, in some contexts (especially if you’re also using some of the other meanings of those symbols). Or you might just use parentheses of different sizes, which I think is becoming more common now that typography can easily accommodate it.

---

<div class="post-metadata">

**Author:** ![Mangetout](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/mangetout/32/19_2.png) [@Mangetout](https://boards.straightdope.com/u/Mangetout)\
**Post date:** [November 23, 2024, 9:09pm UTC](https://boards.straightdope.com/t/whats-the-difference-between-and/1010659/19 "2024-11-23T21:09:34Z")

</div>

Not sure if it’s worth mentioning, but other ways exist - paired dashes, for example - to set apart a a parenthetical clause in a sentence.

---

<div class="post-metadata">

**Author:** ![Pleonast](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/pleonast/32/1183_2.png) [@Pleonast](https://boards.straightdope.com/u/Pleonast)\
**Post date:** [November 23, 2024, 11:17pm UTC](https://boards.straightdope.com/t/whats-the-difference-between-and/1010659/20 "2024-11-23T23:17:46Z")

</div>

> [@Mangetout](#):
>
> Not sure if it’s worth mentioning, but other ways exist - paired dashes, for example - to set apart a a parenthetical clause in a sentence.

But hyphens – like you used – are not a good substitute for dashes (use a double -- as an alternative).

[Next page](https://boards.straightdope.com/t/whats-the-difference-between-and/1010659.md?page=2)
