rust/src/libsyntax/print
Jorge Aparicio 210dd611aa 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
2016-03-07 14:39:39 -05:00
..
pp.rs libsyntax: deny warnings in doctests 2015-11-12 05:16:57 +00:00
pprust.rs implement the ? operator 2016-03-07 14:39:39 -05:00