Re:I stopped everything and started writing C again
by int_19h on Thursday March 13, 2025 @12:08PM
(#43354690)
Rust is basically what you get if you start with ML and then do enough to avoid having garbage collection.
Rust and C++ both use RAII, both have a strong emphasis on type safety, Rust just takes that to the extreme.
I would like to even hope both believe in 0 cost abstractions, which contrary to popular belief isn't no cost, but no cost over doing the same thing yourself.
In many cases it's not even 0 cost, it's negative cost since using declarative programming can allow the compiler to optimise in ways you don't know about.