Skip to content

Commit 1eb23b5

Browse files
committed
---
yaml --- r: 190436 b: refs/heads/snap-stage3 c: d3c49d2 h: refs/heads/master v: v3
1 parent 5896934 commit 1eb23b5

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 857ac28867722111249b5c3ef68e32499bd11ea0
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: ee7a72c608dcae1b66d75f43378dfa1bee36f2d2
4+
refs/heads/snap-stage3: d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf
55
refs/heads/try: 1c28ab65017d74fc13d003f7c7a73d1a48e5406f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/doc/complement-design-faq.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,10 @@ bindings.
174174
See also [a long thread][alt] on renaming `let mut` to `var`.
175175

176176
[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.

0 commit comments

Comments
 (0)