3 ms·
You can abstract really easily using interfaces, so I'm not sure why you think this is the cause.
by marcus_holmes 7y ago
You can abstract really easily using interfaces, so I'm not sure why you think this is the cause.
- pornel 7y agoThere are lots of things that interfaces are sufficient for, but Rust libraries also have an option of using procedural macros, operator overloading, and (the beaten dead horse) generics. Rust uses these features for smaller things like faster hashmaps, custom strings (e.g. on stack, interned), iterator adapters, or custom channels. `defer` is provided via a library in Rust.