Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 438 Bytes

postfixOperator.md

File metadata and controls

11 lines (6 loc) · 438 Bytes

Pattern: Use of postfix operator

Issue: -

Description

Prefix ++/-- operators should be preferred for non-primitive types. Pre-increment/decrement can be more efficient than post-increment/decrement. Post-increment/decrement usually involves keeping a copy of the previous value around and adds a little extra code.

Further Reading