3 ms·
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
by leshow 9y ago
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.