Better HN
topnewbestaskshowjobs
Log inSign up

ribbit243

2 karma · joined Oct 31, 2014 (12y ago) · 1 submissions

Submissions

comment 12y ago · link · parent

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++.