News for hackers. Stuff that matters.
Re:Abstraction without overhead: traits in Rust by marrs on Tuesday May 12, 2015 @08:15AM (#9531132)
JS is a bad example because people who do that are preferring inheritance to composition, which is absurd.

In the case of C, yes you can do that, and where performance is critical you might prefer to do it, but it's obviously not going to be your first choice if you have any sense.

There are no comments on this comment yet.