Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yep. Rust has all of these features (modules, structs with associated methods and type classes (traits)). But nobody thinks of it as an OO language. In fact, I’ve heard that many people struggle with rust if they’ve come from a heavily OO language like Java. You have to structure your code a little differently if you don’t have classes.

Modula apparently had many of these features too - and that predated what we now think of as object oriented programming. The good parts of OOP aren’t OOP.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: