3 ms·
> I never became comfortable with doing object oriented programming with Go, which has not been the case with Rust. Ouch, OOP in Go is just asking for a troubl
by pqb 5y ago
> I never became comfortable with doing object oriented programming with Go, which has not been the case with Rust.
Ouch, OOP in Go is just asking for a trouble. "Inheritance" by embedding anonymous struct/interface should be rarely used. Playing with a magic dependency injection, reflection mocking often do not leads to anything good too.
> In addition in Go I find the project setup and settings like GOPATH, GOBIN quite confusing.
I guess you work on Linux :) Yeah, it is weird, I am glad they have improved that flow by guessing empty GOPATH will be equal to $USER/go/ directory. GOBIN is actually not needed, only if you have used dep dependency manager, which for many years is deprecated.