4 ms·
Yes, and thus a perfect example premature optimization; semantics should define default usage, not some possible micro optimization. This is exactly the kind of
by gnaritas 9y ago
Yes, and thus a perfect example premature optimization; semantics should define default usage, not some possible micro optimization. This is exactly the kind of case Knuth is talking about, going around doing ++x because you think it's faster when the standard idiom is x++ is premature optimization.
- marcosdumay 9y agoWell, there is no reason for any standard idiom there. Those `++` and `--` operators are something to avoid anyway.
- zerr 9y agox++ is not the "standard idiom".