3 ms·
> Coming to Go from more dogmatic OOP languages is such a breath of fresh air. There are only a few (two?) dogmatic OOP languages in common use. Every other l
by lelanthran 4y ago
> Coming to Go from more dogmatic OOP languages is such a breath of fresh air.
There are only a few (two?) dogmatic OOP languages in common use. Every other language that supports OOP has better OO support than Go, as well as:
> If you just need a struct, you can have a struct. If you want a package scoped standalone function, you don't need to invent some made up "class" to attach it to.
While I like Go, a lot of Go code could be simplified by having keyword-supported OO (a 'class' keyword, maybe).
It's better to have inheritance and not need it, than need inheritance and not have it because it is applicable in a lot more places than "composition over inheritance" fanboys would have you believe.