Skip to main content
Source Link
Arnab
  • 377
  • 1
  • 2
  • 11

Yes. You should use in any case when you feel your code will be more clear. Remember your code should be clear enough so that others can understand without reading your comments inside the code. So it is a good practice to use parentheses and braces. Also keep in mind that it may be depends on the particular practice of your company/team. Just maintain one approach and do not mix.

Post Made Community Wiki by Arnab