2 ms·
Even in C, we could use abstract types more; we could use wrapper structs more, to introduce abstraction where we often idiomatically do not. (Again about Rust
by kzrdude 9y ago
Even in C, we could use abstract types more; we could use wrapper structs more, to introduce abstraction where we often idiomatically do not.
(Again about Rust and C++ equally, if we'd only care about "physical" type, the string and the vector would be the same type. The distinct string type allows us to form the rules around exactly what kind of values we allow for or optimize for using that type.)