3 ms·
Is this the same type system that famously forces you to cast items in your collections to the universal supertype?
by paulddraper 8y ago
Is this the same type system that famously forces you to cast items in your collections to the universal supertype?
- AsyncAwait 8y agoEveryone's aware of the lack of generics, it's been rehashed to death. This is a discussion on Go 2, which will add them. The current type system is poor, but still better than dynamic languages.
- paulddraper 8y ago> which will add them. "Generics" can be a lot of things in a lot of ways. AFAIK there is no official Go design for generics, or a list of the deficiencies they will have, so a blanket "this particular problem will of course be solved well" is speculative.
- vram22 8y agoYou know well that it is. Add /s or /rhetoric to your question next time :) Languages can be pretty useful even if they are imperfect, as others have said. And Go is plenty useful. The Stroustrup quote about C++ comes to mind ...
- vram22 8y agoHere you go: https://en.wikiquote.org/wiki/Bjarne_Stroustrup https://en.wikiquote.org/wiki/Bjarne_Stroustrup "There are only two kinds of languages: the ones people complain about and the ones nobody uses." And here's a good set of Q&A from his FAQ; it includes the above quote too: "Did you really say that?": http://www.stroustrup.com/bs_faq.html#really-say-that http://www.stroustrup.com/bs_faq.html#really-say-that