4 ms·
And do you also add the space before the paren when you declare a function? I ask because a conditional block is often closer syntactically to a function defini
by nxn 15y ago
And do you also add the space before the paren when you declare a function? I ask because a conditional block is often closer syntactically to a function definition than it is to a function invocation, yet I hardly ever see anyone put a space before the paren when defining a function.
- michaelcampbell 15y agoI'm guessing here, but I suspect functional comes from maths notation where there typically is no space between the function name and the paren. y = f(x)
- georgieporgie 15y agoI don't see that there is any relationship between a function declaration and a conditional followed by a statement block. There is no reason to use different formatting for function declaration versus invocation.