arades

u/arades@feddit.ch
0 posts · 1 comments

Recent posts

No posts.

Recent comments

on Announcing Rust 1.75.0 · c/rust · 1 pts · 2y

box::new is pretty directly analogous to std::make_unique (factory for unique_ptr), in general rust’s heap allocating types map to c++’s smart pointer types, which are basically universally recommended over raw new/delete. So another column where rust just gives you the one best C++ feature where it still has 4 supported versions.