3 ms·
Rust (mostly) makes you do it right. C++ happily lets you pass a temporary string to a function taking string_view and blowing yourself up. "Just use smart poin
by UncleMeat 4y ago
Rust (mostly) makes you do it right. C++ happily lets you pass a temporary string to a function taking string_view and blowing yourself up. "Just use smart pointers everywhere" is not actually sufficient to prevent serious bugs.