Re:Abstraction without overhead: traits in Rust
by seanmcdirmid on Monday May 11, 2015 @05:40PM
(#9528038)
There are ways to fix that, but I could never get Martin interested in my exclusive inheritance proposals. In particular, only one trait should be allowed to "implement" an abstract method in an object, although typical overriding is still unrestricted. It does require a new keyword (implement vs. override). As for overriding, traits could be ordered globally based on extension relationships and other fixed markers (e.g. Names).
[ Parent
| on HN ]
There are no comments on this comment yet.