about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-03-08 01:31:04 -0800
committerbors <bors@rust-lang.org>2016-03-08 01:31:04 -0800
commit3af60f831f75ae2632bbfd4c1aa66049ec2d486a (patch)
tree211677e1c9a46740ec3fc9cba30c5f7346ad675d /src/libstd/sys/unix/stack_overflow.rs
parenta9ffe67f98366c58f13e89851d025e8e063f0bb2 (diff)
parent2de4932453a99a19e9033edb47db7a66a612188c (diff)
downloadrust-3af60f831f75ae2632bbfd4c1aa66049ec2d486a.tar.gz
rust-3af60f831f75ae2632bbfd4c1aa66049ec2d486a.zip
Auto merge of #31954 - japaric:rfc243, r=nikomatsakis
implement the `?` operator

The `?` postfix operator is sugar equivalent to the try! macro, but is more amenable to chaining:
`File::open("foo")?.metadata()?.is_dir()`.

`?` is accepted on any *expression* that can return a `Result`, e.g. `x()?`, `y!()?`, `{z}?`,
`(w)?`, etc. And binds more tightly than unary operators, e.g. `!x?` is parsed as `!(x?)`.

cc #31436

---

cc @aturon @eddyb
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions