Hacker News new | past | comments | ask | show | jobs | submit login

Drinking the golaid will turn you into this, extreme conservative programming. Polymorphism is too progressive. golang is a cult.



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.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: