News for hackers. Stuff that matters.
Re:Rust 0.9 released by thirsteh on Thursday January 09, 2014 @09:10PM (#7034649)
I think this is a good idea. It seems similar to Go's embedding: http://golang.org/doc/effective_go.html#embedding
Re:Rust 0.9 released by pcwalton on Thursday January 09, 2014 @09:15PM (#7034667)
The difference is that the base struct can call methods on the derived struct, whereas this is not possible with that kind of struct embedding. This is important for some use cases (e.g. the DOM or the render tree).
Re:Rust 0.9 released by thirsteh on Thursday January 09, 2014 @09:26PM (#7034718)
I see.