| ▲ | nine_k 2 hours ago | |
That's why I said "part of its efficiency". Rust can do RAII, can optimize things more aggressively because of no aliasing ever in safe code, and because of known lifetimes, it can offer fearless concurrency™. Rust can also support highly optimized data representations (see how Optional works, or other ADTs, etc) which languages like Haskell, to say nothing of Python, cannot offer because of GC and boxing. Lower-level languages like Zig or even Go, to say nothing of C, lack many of the high-level language features that power this efficiency. | ||