Main Site Documentation

Book Error!


#1

Curly Brackets, they are called Parentheses. :slight_smile:

Otherwise, I like the book so far :smiley:


#2

Really? I always heard them being called curly-brackets!


#3

I think the confusion lies in the fact that the top paragraph talks about curly brackets { } but then shows an example of a single line that uses parenthesis ( ).


#4

I don’t see any error here : the quoted code line is indeed the only line inside the {} curly brackets. Only the curly brackets were not printed again in the excerpt.


#5

I see. Well then i apologize for my interpretation of the text, and thinking the “curly brackets” was actually describing the parentheses below the context.

Actually, i just reread the paragraph. It is referring to the line of code within the first program we create. And it then displays that line of code being talked about, which is Debug.Print(“Amazing”); that being said, it is indeed referring to these “brackets” being used. which are called parentheses.


#6

Parenthesis != brackets

Brackets are used to denote blocks
Parenthesis are used to denote arguments or input.
if (somecondition)
{

}


#7

In australia/uk brackets == parenthesis.

To us:
() = brackets
{} = curly brackets, braces, curly braces.
<> = triangular brackets (in xml/xaml)


#8

[quote]In australia/uk brackets == parenthesis.

To us:
() = brackets
{} = curly brackets, braces, curly braces.
<> = triangular brackets (in xml/xaml)
[/quote]

And what are [ ]?


#9

The “brackets” are referring to the main statement brackets, it would be a lot easier if the picture showed whats inside main.

All in all, its ok though


#10

@ Mike square brackets are array indexers.


#11

Following are the “official names” for C#:

[ ] brackets
() parentheses
{ } Braces.


#12

[] to us in Aus working as programmers are just square brackets Mike. We’re an odd bunch down this way though :wink:


#13

oh hey, another Aussie ! :wink:


#14

But i’m in WA, so might as well be another country to you :stuck_out_tongue: (guessing you’re over east)


#15

as Mike stated :
Following are the “official names” for C#:

[ ] brackets
() parentheses
{ } Braces.


^ i win! =P.


#16

THE SYNTAX WARS BEGIN! :naughty:


#17

Should we now debate K&R vs Alman style bracing? That’s about the most nitpic programming argument there is.


#18

Chris: :clap: :clap: :clap: :clap:

I have some very strong views on how many spaces are to be used for indentation.


#19

Tabs Vs spaces! ::slight_smile:

One tab per block level. NO SPACES!!!


#20

It is fun reading all this :smiley: I honestly would call it anything you guys like since this is so not important. What is really important is that you can easily make things with FE that were impossible before :wink:
…I am talking about making things that you can be proud off and maybe sell commercially.