Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Latest commit

 

History

History
22 lines (11 loc) · 263 Bytes

no-post-increment-var.md

File metadata and controls

22 lines (11 loc) · 263 Bytes

Remplacer les i++ par ++i (s67)

Rule Details

The form i++ creates a temporary variable whereas ++i does not. It save CPU cycles.

Examples of incorrect code for this rule:

i++

Examples of correct code for this rule:

++i