Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hide won't
Message
Information générale
Forum:
Javascript
Catégorie:
JQueryUI
Titre:
Divers
Thread ID:
01596038
Message ID:
01596100
Vues:
56
>>That is ridiculous about JSint. A code block's opening { being placed at the end of a line is a very common formatting style.
>>
>
>The semicolons in JS are optional. The interpreter will "fill them in" where ever it thinks they belong. That means it's possible to run into subtle (read, really hard to find) bugs, which is why it's considered a best practice (and not just style issue) to NOT put curly braces on a new line. It keeps the interpreter from adding a semicolon where it might not belong.

Thanks for clarifying that it isn't just a matter of style. From the school of hard knocks, I'm sure ;-)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform