3 ms·
"Zero cost abstraction" means that the abstraction doesn't impose an additional cost. It is the same cost of branching that C will have, modulo optimizations.
by Manishearth 10y ago
"Zero cost abstraction" means that the abstraction doesn't impose an additional cost. It is the same cost of branching that C will have, modulo optimizations.
(Languages with dependent types can help move bounds checks to compile time, but Rust does not have those)