Hacker News new | past | comments | ask | show | jobs | submit
C++ added OOP to C.

Rust is not object-oriented.

That makes your statement wrong.

It certainly is according to the various CS definitions of type systems.

Plenty of OOP architectures can be implemented 1:1 in Rust type system.

Yes, of course you can call objc_msgSend or equivalent in Rust just as you can in C. But you are pushing the object-oriented model into a library. It is not native to the language.
loading story #47340200
{"deleted":true,"id":47337679,"parent":47334911,"time":1773246351,"type":"comment"}
> Plenty of OOP architectures can be implemented 1:1

Plenty of OOP architecture can be implemented in C. That's an extremely flawed and fuzzy definition. But we've been through this before.

loading story #47336447
Objective-C added OOP to C. C++ did not. C++ is neither an OO language nor a C superset.