News for hackers. Stuff that matters.
Re:Haskell Typeclasses vs. C++ Classes by steveklabnik on Tuesday October 17, 2017 @11:06AM (#15491514)
Rust's traits are basically typeclasses, and so people coming from an OOP background have often struggled to model stuff in a Rust-y way. The 17th chapter of The Rust Programming Language [1] tries to get into the differences, and explain this kind of stuff. It's really hard though, since what OOP means depends on who you ask.

I enjoyed this post since it's kind of a mirror of this chapter, which was one of the hardest for us to figure out what to put in it.

1: https://doc.rust-lang.org/book/second-edition/ch17-00-oop.ht...

There are no comments on this comment yet.