3 ms·
But classes are a really crap way to share code, since you get the is-a relationship rather than the has-a relationship which is almost always what you want to
by hgomersall 11mo ago
But classes are a really crap way to share code, since you get the is-a relationship rather than the has-a relationship which is almost always what you want to express. Rust traits and derive macros are a much better abstraction for everything I've ever done when contrasted with classes.