re: Demystifying the Long Arrow "Operator" VIEW POST

VIEW FULL DISCUSSION

That's why everyone should avoid increment (++) and decrement (--) operators

As in the Douglas Crockford's Javascript: The Good Parts, he writes:

++ and --
The ++ (increment) and -- (decrement) operators have been known to contribute to bad code by
encouraging excessive trickiness. They are second only to faulty architecture in enabling to viruses and other security menaces. There is a plusplus option [in JSLint] that prohibits the use of these operators.

Definitely can't disagree with the Great Crockford.

code of conduct - report abuse