What are these brackets after the function name?

If I'm not mistaken, those brackets contain arguments for the function.

Function MyFunction(var1, var2, etc...)
 
If I'm not mistaken, those brackets contain arguments for the function.

Function MyFunction(var1, var2, etc...)

Yup, this - it's the same in a lot of languages.

When the function doesn't have any parameters the brackets are still needed as a way of differentiating between functions and fields.
 
Technically, they're braces () not brackets []. Brackets are used in many languages in array definitions.

Nope, in the good proper English of the UK they're technically known as brackets ;)

But yes, this does get confusing...
 
I have nothing to contribute to the OP but

() = parenthesis
[] = brackets
{} = fancy brackets

where I'm from. :)
 
Back
Top Bottom