The Straight Dope

Go Back   Straight Dope Message Board > Main > General Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 04-01-2003, 08:50 PM
Aslan of Narnia Aslan of Narnia is offline
Registered User
 
Join Date: Feb 2003
Use of [], rather than ()

How, in usage, are [] and () different?
Reply With Quote
Advertisements  
  #2  
Old 04-01-2003, 08:54 PM
everton everton is offline
Guest
 
Join Date: Nov 1999
In usage of what? Should this be in another forum?
Reply With Quote
  #3  
Old 04-01-2003, 08:57 PM
WillGolfForFood WillGolfForFood is offline
Registered User
 
Join Date: Dec 1999
Well, in C and C++, square brackets are used in arrays but parentheses are used in function calls.
Reply With Quote
  #4  
Old 04-01-2003, 09:03 PM
nineiron nineiron is offline
Guest
 
Join Date: Aug 2000
The square brackets are useful for inserting explanatory words into a direct quote. For example:

The newspaper stated, "The suspect [Mr. Jones] was arraigned on Tuesday."
Reply With Quote
  #5  
Old 04-01-2003, 09:09 PM
brianmelendez brianmelendez is offline
Charter Member
 
Join Date: Jan 2003
Location: Minneapolis, Minn.
Posts: 1,189
Some styles also use the bracket as a second-order parenthesis (that is, a parenthesis within a parenthesis [if you know what I mean]).
Reply With Quote
  #6  
Old 04-01-2003, 09:25 PM
Aslan of Narnia Aslan of Narnia is offline
Registered User
 
Join Date: Feb 2003
Quote:
Originally posted by everton
In usage of what? Should this be in another forum?
What forum should it be in, then?

I'm talking about correct punctuation usage, such as if you were to use a . to end a sentence, or use a ! to show excitement.
Reply With Quote
  #7  
Old 04-01-2003, 09:41 PM
Exapno Mapcase Exapno Mapcase is offline
Charter Member
 
Join Date: Mar 2002
Location: NY but not NYC
Posts: 20,922
Following up on what nineiron posted, a more general rule would be that you use parens to enclose an insertion you make into your own words and brackets to enclose an insertion into somebody else's words.

From the Chicago Manual of Style (13th edition):

Quote:
Parentheses, like commas and dashes, may be used to set off amplifying, explanatory, or digressive elements. ex: The final sample that we collected (under extremely difficult circumstances) contained an unexpected impurity.

Brackets are used to enclose editorial interpolations, corrections, explanations, or comments in quoted material. ex: "Despite the damaging evidence that had been brought to light [by Simpson and his supporters], Fernandez contined to believe in his friend's innocence."
There are many more specialized usages of each as well.
Reply With Quote
  #8  
Old 04-01-2003, 11:50 PM
Sunspace Sunspace is offline
Charter Member
 
Join Date: Jun 1999
Location: Back in the GT eeehhhh...
Posts: 24,940
Square brackets, round brackets, curly brackets, angle brackets... a plethora of brackets!
__________________
Rigardu, kaj vi ekvidos.
Look, and you will begin to see.
Reply With Quote
  #9  
Old 04-01-2003, 11:57 PM
vivalostwages vivalostwages is offline
Charter Member
 
Join Date: Mar 2001
Location: Lower half of CA
Posts: 12,856
You can also use brackets [ ] to enclose the Latin word sic when quoting something accurately which just happens to have an error in it. By saying "sic" you are saying that you are quoting exactly, but that the error occurred in the original material and that it is not yours.
Reply With Quote
  #10  
Old 04-02-2003, 12:12 AM
Q.E.D. Q.E.D. is offline
Charter Member
 
Join Date: Jan 2003
Location: Richmond, VA
Posts: 22,536
Square brackets are also used in an editorial context to clarify or correct: "...[S]he said that [the perpetrators] were convicted." when the original quote read "she said that they were convicted."
__________________
SnUgGLypuPpY -- TakE BaCk tHe PiT!
Reply With Quote
  #11  
Old 04-02-2003, 01:51 AM
Mangetout Mangetout is offline
Charter Member
 
Join Date: May 2001
Location: Kingdom of Butter
Posts: 47,508
I tend to use parentheses for parenthetical remarks (I do this a lot), and square brackets to delimit a [discrete entity that is described by more than one word].
Reply With Quote
  #12  
Old 04-03-2003, 01:05 AM
vivalostwages vivalostwages is offline
Charter Member
 
Join Date: Mar 2001
Location: Lower half of CA
Posts: 12,856
I was just going over format today with students, and the newer textbooks now say that [ ] should be placed around ellipsis. Back in my day, we never used brackets for that purpose.
Any thoughts on this?
Reply With Quote
  #13  
Old 04-03-2003, 05:23 AM
Fernmeldetruppe Fernmeldetruppe is offline
Guest
 
Join Date: Aug 2000
When doing calculations, one often uses brackets to enclose the units (for clarity).

e.g.

3*10^8 [m/s]
---------------------- = f [Hz]
.5 [m]
Reply With Quote
  #14  
Old 04-04-2003, 10:13 PM
Napier Napier is offline
Charter Member
 
Join Date: Jan 2001
Location: Mid Atlantic, USA
Posts: 7,175
Brackets around elipsis? Never heard of it[...] Sounds weird[....]

Brackets for editorializing [nobody here is going to know what that means] even if it's your own words, i.e. to set aside notes to yourself that you know you will remove later.

Apple ][ computers used square brackets in the wrong order to make a really cool Roman numeral two.

Lots of computer languages use [] and () and {} and even <> as delimiters, grouping means, to show functions, or to show array indices, or comments, etc etc.
Reply With Quote
  #15  
Old 04-04-2003, 10:30 PM
Mr2001 Mr2001 is offline
Guest
 
Join Date: Dec 1999
You use brackets around an ellipsis when you're editing an original quote: "Congress shall make no law [...] abridging the freedom [...] to petition the government for a redress of grievances."
Reply With Quote
  #16  
Old 04-04-2003, 11:40 PM
Speaker for the Dead Speaker for the Dead is offline
Guest
 
Join Date: Jun 2000
That just looks odd to me. I'd almost read that as if the author were stating that he was speechless over that line, as opposed to saying that he had removed a portion.
Reply With Quote
  #17  
Old 04-05-2003, 01:49 AM
Enola Straight Enola Straight is offline
Member
 
Join Date: Jan 2001
Location: Somers Point, NJ
Posts: 4,778
I seem to remember something from high school algebra...

When dealing with sets, [ ] detotes a range of all values, inclusive, while ( ) denotes a range of all values EXclusive
Reply With Quote
  #18  
Old 04-05-2003, 09:42 AM
Shade Shade is offline
Guest
 
Join Date: Oct 2001
In fact, that's about the only time you can open and close with different brackets. In all other cirumstances you have (..) or [..] but you can write [0,1) to mean all numbers >=0 and <1.
Reply With Quote
  #19  
Old 04-05-2003, 11:29 AM
xvxdarkknightxvx xvxdarkknightxvx is offline
Guest
 
Join Date: Oct 2000
What about in math when you have something like:

7[5(x + 2) + (9x^2 +7)]

?
Reply With Quote
  #20  
Old 04-05-2003, 11:39 AM
brianmelendez brianmelendez is offline
Charter Member
 
Join Date: Jan 2003
Location: Minneapolis, Minn.
Posts: 1,189
Quote:
Originally posted by Shade
In fact, that's about the only time you can open and close with different brackets. In all other cirumstances you have (..) or [..] but you can write [0,1) to mean all numbers >=0 and <1.
Quote:
Originally posted by xvxdarkknightxvx
What about in math when you have something like:

7[5(x + 2) + (9x^2 +7)]
xvxdarkknightxvx, your example still consists of two matched left-and-right pairs of parentheses, nested within a matching left-and-right pair of brackets. I think that Shade was referring to the unusual case where you can correctly use a left bracket or parenthesis without pairing it with a right, or vice versa, or without pairing it with another bracket or parenthesis at all.
Reply With Quote
  #21  
Old 04-05-2003, 11:42 AM
bradwalt bradwalt is offline
Guest
 
Join Date: Feb 2003
I don't think square brackets were even invented until the early 1970s, when they started showing up on computer keyboards. Before that, we had to use the plain old parentheses found on typewriters.

Wild Guess: Computer languages were the first applications for the use of these square brackets. The field of mathematics also had specific uses for square brackets, as discussed in this thread, but usually required many other tricky typesetting techniques.

In normal human-language text, we should always follow our style manual (if your boss or company doesn't have a style manual, then play it safe, and use parentheses only). Remember, that a lot of text is still typed on old typewriters, (or typeset on old equipment). Therefore, most style manuals do not automatically assume that square and curly brackets are available.
Reply With Quote
  #22  
Old 04-05-2003, 11:54 AM
vivalostwages vivalostwages is offline
Charter Member
 
Join Date: Mar 2001
Location: Lower half of CA
Posts: 12,856
Quote:
Originally posted by Speaker for the Dead
That just looks odd to me. I'd almost read that as if the author were stating that he was speechless over that line, as opposed to saying that he had removed a portion.
-------------------------------------------------------------------------------
You know, it really does look weird now that someone has written it out. I told my students to ignore that part of the textbook and just do the ellipsis without brackets, just as we did "back in the day."

Honestly, I think those folks at the MLA need to leave well enough alone.
Reply With Quote
  #23  
Old 04-05-2003, 12:15 PM
yabob yabob is offline
Charter Member
 
Join Date: Mar 2000
Posts: 6,992
Quote:
Originally posted by bradwalt
I don't think square brackets were even invented until the early 1970s, when they started showing up on computer keyboards. Before that, we had to use the plain old parentheses found on typewriters.

...
You will find them in many textbooks long before then.

As for keyboards - they appeared in the ASCII 1963 specification.

(source - http://www.wps.com/projects/codes/index.html Their mention of one square brace being added in 1967 seems to be in error, as they are present in the 1963 spec, and, IIRC, are part of the COBOL graphics that 1963 intended to support)

When I graduated from high school I was given a portable typewriter. One of its features was that 4 of the keys had removable typefaces that could be replaced with a variety of special character sets obtainable from the manufacturer. I think the "math" set I had may have included square braces.
Reply With Quote
  #24  
Old 04-05-2003, 02:59 PM
This just in ... This just in ... is offline
Member
 
Join Date: Apr 2003
Posts: 11
Most books on computer language or books on human metalanguage will start off with a set of definitions on use of () [] {} and other groupings. They vary a lot from one author to another, as a student will quickly find out and complain about.
__________________
When in doubt, lift up your head and shout: Hit me again, barkeep! - Authority Figment
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:54 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Send questions for Cecil Adams to: cecil@chicagoreader.com

Send comments about this website to: webmaster@straightdope.com

Terms of Use / Privacy Policy

Advertise on the Straight Dope!
(Your direct line to thousands of the smartest, hippest people on the planet, plus a few total dipsticks.)

Publishers - interested in subscribing to the Straight Dope?
Write to: sdsubscriptions@chicagoreader.com.

Copyright © 2013 Sun-Times Media, LLC.