Better HN
topnewbestaskshowjobs
Log inSign up

commit

27 karma · joined Jan 14, 2013 (13y ago) · 2 submissions

Submissions

comment 5y ago · link · parent

I'm waiting for Python for Workgroups 3.11

comment 7y ago · link · parent

>Wouldn't this work? https://doc.rust-lang.org/std/mem/fn.swap.html

If you click the [src] link on that page, you'll see that the implementation of std::mem::swap uses unsafe. I'm no Rust expert, but I'm also not aware of a way to swap pointers without unsafe.