Is it a bad practice to use an if-statement without curly braces? [closed]
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 years ago . I\'ve seen code like this: if(statement) do this; else do this; I don\'t like that, I think this is cleaner and more readable if(statement){ do this; }else{ do this; } Is this simply a matter of preference or would one way be recommended over the other? 回答1: The problem with