Re:Async Rust Is A Bad Language
by Animats on Friday September 08, 2023 @03:57PM
(#37438626)
That's about what I was going to say. Traits have no data of their own. If you need that, you have to construct it, with a data object in each trait instance and access functions for it. It turns the notion of inheritance inside out. Awkward enough that it's only done if absolutely necessary.
[ Parent
| on HN ]
There are no comments on this comment yet.