Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
da-x
on March 1, 2020
|
parent
|
context
|
favorite
| on:
A half-hour to learn Rust
There's a difference between
let _ = <expr>;
and:
let _x = <expr>;
The first one drops ownership over the variable right after `let`, and the second drops in the end of the scope where the `let` is contained. It was mentioned in an open Rust github issue, but I can't seem to find it.
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: