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

OOP is about code organization. Type dependent namespaces (also known as classes) are pretty much the core of OOP.


So is it dot-method notation (`foo.Bar()`)? If so, does that make Go and Rust OOP as well? That's just syntax though; what about the C convention of `ClassName_method_name(ClassName obj)`? That's still namespace by the type even if the language* doesn't have a first-class notion of a type prefix.




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

Search: