News for hackers. Stuff that matters.
Re:Six years of Go by DanWaterworth on Tuesday November 10, 2015 @08:43AM (#10539179)
The Go faq doesn't agree with you.
Re:Six years of Go by blowski on Tuesday November 10, 2015 @08:51AM (#10539222)
You're both right. I'm paraphrasing, but the FAQ says "We will add generics if somebody can demonstrate that the value of doing so would outweigh the complexity it would add". I'm assuming nobody has demonstrated that, so they haven't added them.
Re:Six years of Go by meddlepal on Tuesday November 10, 2015 @09:44AM (#10539556)
Should really read "We will add generics if somebody can perform the impossible and convince the very stubborn and opinionated Go leadership that the value of doing would outweigh the complexity it would add".
Re:Six years of Go by sambeau on Tuesday November 10, 2015 @08:49AM (#10539212)
You are both correct.

It is by design that Go does not have generics as the Go team have not found a design they feel works and they are unwilling to compromise the current design.

They may never.

Re:Six years of Go by ohto on Tuesday November 10, 2015 @09:00AM (#10539265)
Nonsense. Reread the FAQ. They are choosing to not implement generics. If someone can find a way to implement them without violating Go's design principles, they will. In other words, it's a choice. It's not that they just haven't got around to it.