ref='#why-no---x-or-x'>2.4 Why no <code>--x</code> or <code>x++</code>?</a></h2>
<p>Preincrement and postincrement, while convenient, are also fairly complex. They
require knowledge of evaluation order, and often lead to subtle bugs and
undefined behavior in C and C++. <code>x = x + 1</code> or <code>x += 1</code> is only slightly
longer, but unambiguous.</p>

    <script type="text/javascript">
        window.playgroundUrl = "https://play.rust-lang.org/";
    </script>
    <footer><p>
Copyright &copy; 2011