Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ribbit243
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
ribbit243
12y ago
Consider a Movable file handle. File fh = File(fopen("file.txt")); foo(std::move(fh)); Using fh after foo() would yield a compile error in Rust. It does not in C++.