Re:I Don't Use Classes
by simion314 on Thursday March 12, 2020 @11:36AM
(#22557926)
I do not know Rust but this seems an implementation detail, like if I would make the Vector.normalize function static and then pass the this as an argument. Sometimes this pattern with static function works well too. My classes also have private methods and sometimes even private static pure functions. Anyway you Rust people do whatever you want and call them whatever you want , I will call a struct with methods a class.
[ Parent
| on HN ]
There are no comments on this comment yet.