Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Re: Re: Real World 1, Great Expectations 0

by greywolf (Priest)
on Oct 18, 2001 at 20:10 UTC ( [id://119721]=note: print w/replies, xml ) Need Help??


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

...not curley braces (what are they called anyway?)

I seem to remember reading this in a previous life:
    () are braces
    {} are brackets

Update: I stand corrected. See pjf's response below.

mr greywolf
  • Comment on Re: Re: Re: Real World 1, Great Expectations 0

Replies are listed 'Best First'.
(OT): Braces vs brackets
by pjf (Curate) on Oct 19, 2001 at 03:39 UTC
    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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://119721]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-24 11:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found