File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed 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
- refs/heads/master: ee7a72c608dcae1b66d75f43378dfa1bee36f2d2
2
+ refs/heads/master: d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 270a677d4d698916f5ad103f0afc3c070b8dbeb4
5
5
refs/heads/try: 649d35e4d830b27806705dc5352c86ab6d6fd1a1
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