Just thought I’d see if somebody could explain why Anders decided that this is valid…
if(...)
//single statement
else
///single statement
but this is not…
try
//single statement
catch
//single statement
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.
To quote from Framework Design Guidelines in the section about “General Style Conventions” this is said about braces:
What Anders thinks is subjective and argumentative, this is the recommendation.
You might also want to look at the section about bracing in the coding convention over at msdn.