vendredi 23 septembre 2016

if statement without parenthesis?

Within my codebase I have the following if statement:

 if (count-- <= 0)
 break;

//rest of code

The code works as intended, however is it best practice, in terms of readability to change the code to the following?

if (count-- <= 0){
     break;
}
    //rest of code

Aucun commentaire:

Enregistrer un commentaire