Hacker News new | ask | show | jobs
by lkjasdfasd 3745 days ago
Drinking the golaid will turn you into this, extreme conservative programming. Polymorphism is too progressive. golang is a cult.
1 comments

Go is heavily based on polymorphism. It just doesn't make the mistake of thinking that inheritance is the proper way to achieve it.
> Go is heavily based on polymorphism

Go has very limited polymorphic capabilities (implicit interfaces that have huge limitations). And struct embedding isn't composition. Now if you're talking about interface { } everywhere, sure, Go is as polymorphic as Javascript.

Go is also based on limitations. The job is to write programs that work, not to create little framework empires.

I don't know why you claim that struct embedding isn't composition.

What does that have to do with generics?
Nothing. But at the same time, the comment I replied to made no mention of generics. Just polymorphism.