|
|
|
#1
|
|||
|
|||
|
Use of [], rather than ()
How, in usage, are [] and () different?
|
| Advertisements | |
|
|
|
|
#2
|
|||
|
|||
|
In usage of what? Should this be in another forum?
|
|
#3
|
|||
|
|||
|
Well, in C and C++, square brackets are used in arrays but parentheses are used in function calls.
|
|
#4
|
|||
|
|||
|
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." |
|
#5
|
|||
|
|||
|
Some styles also use the bracket as a second-order parenthesis (that is, a parenthesis within a parenthesis [if you know what I mean]).
|
|
#6
|
|||
|
|||
|
Quote:
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. |
|
#7
|
|||
|
|||
|
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:
|
|
#8
|
|||
|
|||
|
Square brackets, round brackets, curly brackets, angle brackets... a plethora of brackets!
__________________
Rigardu, kaj vi ekvidos. Look, and you will begin to see. |
|
#9
|
|||
|
|||
|
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.
|
|
#10
|
|||
|
|||
|
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! |
|
#11
|
|||
|
|||
|
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].
|
|
#12
|
|||
|
|||
|
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? |
|
#13
|
|||
|
|||
|
When doing calculations, one often uses brackets to enclose the units (for clarity).
e.g. 3*10^8 [m/s] ---------------------- = f [Hz] .5 [m] |
|
#14
|
|||
|
|||
|
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. |
|
#15
|
|||
|
|||
|
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."
|
|
#16
|
|||
|
|||
|
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.
|
|
#17
|
|||
|
|||
|
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 |
|
#18
|
|||
|
|||
|
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.
|
|
#19
|
|||
|
|||
|
What about in math when you have something like:
7[5(x + 2) + (9x^2 +7)] ? |
|
#20
|
|||
|
|||
|
Quote:
Quote:
|
|
#21
|
|||
|
|||
|
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. |
|
#22
|
|||
|
|||
|
Quote:
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. |
|
#23
|
|||
|
|||
|
Quote:
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. |
|
#24
|
|||
|
|||
|
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 |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|