Re:Abstraction without overhead: traits in Rust
by oldmanjay on Monday May 11, 2015 @04:32PM
(#9527650)
Quick correction: Java 8 does have defender methods.
Re:Abstraction without overhead: traits in Rust
by kzrdude on Monday May 11, 2015 @06:04PM
(#9528152)
default method implementations makes traits behave like mixins, it's very useful (and it is a form of code reuse).
Originally I resisted them on the grounds of not being necessary, but they're used all over now. Being able to supply a default implementation is extremely useful.