Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
bonzini
on Nov 4, 2022
|
parent
|
context
|
favorite
| on:
Rust 1.65.0
For Result it's probably more common to use ?, alternatively you could use
let x_result = something; let Ok(x) = x_result else { ... }
But I expect that it will be used mostly with Option, as in "else continue" or "else break".
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: