Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
burntsushi
on Sept 16, 2014
|
parent
|
context
|
favorite
| on:
The Road to Rust 1.0
A `!` followed by an identifier does, yes. But a `!` also lets you define diverging functions:
fn diverging() -> ! { unreachable!() }
The two `!` in that code are completely orthogonal things. See the manual on diverging functions:
http://doc.rust-lang.org/rust.html#diverging-functions
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: