When you have line of code with a parenthetical statement, do you include a space before the parenthetical?
For example, should it be
if()
or
if ()
Thanks in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Subjective, but I prefer having the space because it looks cleaner, or maybe because that’s just how I learnt to ‘do it’ with language constructs such as
switch,if,whileandfor.You could do it without the space if you like it to ‘look like’ a function call, because I don’t use a space for function calls.