Curly Brackets, they are called Parentheses.
Otherwise, I like the book so far
Curly Brackets, they are called Parentheses.
Otherwise, I like the book so far
Really? I always heard them being called curly-brackets!
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 ( ).
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.
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.
Parenthesis != brackets
Brackets are used to denote blocks
Parenthesis are used to denote arguments or input.
if (somecondition)
{
}
In australia/uk brackets == parenthesis.
To us:
() = brackets
{} = curly brackets, braces, curly braces.
<> = triangular brackets (in xml/xaml)
[quote]In australia/uk brackets == parenthesis.
To us:
() = brackets
{} = curly brackets, braces, curly braces.
<> = triangular brackets (in xml/xaml)
[/quote]
And what are [ ]?
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
@ Mike square brackets are array indexers.
Following are the âofficial namesâ for C#:
[ ] brackets
() parentheses
{ } Braces.
[] to us in Aus working as programmers are just square brackets Mike. Weâre an odd bunch down this way though
oh hey, another Aussie !
But iâm in WA, so might as well be another country to you (guessing youâre over east)
as Mike stated :
Following are the âofficial namesâ for C#:
[ ] brackets
() parentheses
{ } Braces.
^ i win! =P.
THE SYNTAX WARS BEGIN! :naughty:
Should we now debate K&R vs Alman style bracing? Thatâs about the most nitpic programming argument there is.
Chris:
I have some very strong views on how many spaces are to be used for indentation.
Tabs Vs spaces! :
One tab per block level. NO SPACES!!!
It is fun reading all this 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
âŚI am talking about making things that you can be proud off and maybe sell commercially.