Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

(OT): Braces vs brackets

by pjf (Curate)
on Oct 19, 2001 at 03:39 UTC ( #119835=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: Real World 1, Great Expectations 0
in thread Real World 1, Great Expectations 0

According to The Free On-Line Dictionary of Computing (and my own experience and teaching), I've found the following conventions are normally used:

  • {} are braces (also called squiggly or curly brackets)
  • [] are brackets (also called square brackets)
  • () are parentheses (also called parens, round brackets, or bananas)

Of course, "braces vs brackets vs parentheses" are not immediately obvious to everyone, whereas "curly brackets vs square brackets vs round brackets" are. If you're not certain that your audience is going to use the same conventions as you, it's worth clarifying things first.

That reminds me, I've got a bunch of course notes I should be updating to do exactly that. ;)

Cheers,
Pedantic Paul

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://119835]
help
Chatterbox?
[zentara]: Strange, on clicking a link in a node, I am taken to that node, but my votes and login are lost. Should I post a Permonks Discussion?
[choroba]: that just means someone used a wrong link format
[choroba]: msg them or consider to fix
[zentara]: Gratias
[LanX]: pm != tk ;)
[Corion]: zentara: Most likely they used something like [http://www. perlmonks.org/? node=123456] instead of [id://123456], which uses whatever domain you're visiting from
[LanX]: hmm... Actually this could be used for a phishing exploit ...
[LanX]: ... well like always :)

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2017-05-26 12:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?