2 ms·
From their examples. Swift: var n = m--; JS var n = --m; Forget that ++ and -- operators are deprecated and not available in Swift 3.0; simple but profound
by leonatan 10y ago
From their examples.
Swift:
var n = m--;
JS
var n = --m;
Forget that ++ and -- operators are deprecated and not available in Swift 3.0; simple but profound mistakes like this do not instill confidence at all.
- rahkiin 10y agoAlso, --m and m-- are completely different. One decrements first and returns the new value, the other returns the new value and then decrements.