Re:Announcing Rust 1.20
by leshow on Thursday August 31, 2017 @05:35PM
(#15144147)
It's not though, AFAIK the x.foo() syntax is just sugar for
let a = Foo;
Foo::bar(&a); // if bar takes &self
Plus, there is no concept of inheritance. I don't see how that meets any definition of OOP unless you make the definition so weak as to be meaningless.
let a = Foo; Foo::bar(&a); // if bar takes &self
Plus, there is no concept of inheritance. I don't see how that meets any definition of OOP unless you make the definition so weak as to be meaningless.