loading...

Discussion on: Demystifying the Long Arrow "Operator"

Collapse
theodesp profile image
Theofanis Despoudis

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.

Collapse
somedood profile image
Basti Ortiz (Some Dood) Author

Definitely can't disagree with the Great Crockford.