File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
branches/snap-stage3/src/doc Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 857ac28867722111249b5c3ef68e32499bd11ea0
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: ee7a72c608dcae1b66d75f43378dfa1bee36f2d2
4
+ refs/heads/snap-stage3: d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf
5
5
refs/heads/try: 1c28ab65017d74fc13d003f7c7a73d1a48e5406f
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
Original file line number Diff line number Diff line change @@ -174,3 +174,10 @@ bindings.
174
174
See also [ a long thread] [ alt ] on renaming ` let mut ` to ` var ` .
175
175
176
176
[ alt ] : https://mail.mozilla.org/pipermail/rust-dev/2014-January/008319.html
177
+
178
+ ## Why no ` --x ` or ` x++ ` ?
179
+
180
+ Preincrement and postincrement, while convenient, are also fairly complex. They
181
+ require knowledge of evaluation order, and often lead to subtle bugs and
182
+ undefined behavior in C and C++. ` x = x + 1 ` or ` x += 1 ` is only slightly
183
+ longer, but unambiguous.
You can’t perform that action at this time.
0 commit comments