2 ms·
> From that writeup, it seems like one is forced to program Rust in an object oriented manner. That's really not the case. In fact I'd say the opposite, the fo
by masklinn 8y ago
> From that writeup, it seems like one is forced to program Rust in an object oriented manner.
That's really not the case. In fact I'd say the opposite, the focus on ownership, limitations of the borrow checker (partial borrows through function calls) and lack of inheritance makes "object oriented programming" rather difficult. That functions are commonly namespaced through traits or structs does not intrinsically make it "object oriented".
It has a number of functional APIs (many standard structures have various HoFs for manipulating them and combining them), although the ownership and borrow checking bits can also make them somewhat less convenient.