Really? How would you implement math.Max with generics? Thomas
On Wed, Jun 22, 2016, 5:45 AM Viktor Kojouharov <vkojouha...@gmail.com> wrote: > https://golang.org/pkg/math/ and https://golang.org/pkg/container/ are > just two stdlib packages that would greatly benefit from some kind of > generics. I'm pretty sure there are more packages in the stdlib that would > be greatly improved. And that's just the standard library. > > > On Tuesday, June 21, 2016 at 5:29:37 PM UTC+3, Henry wrote: >> >> You still haven't provided any argument why generics is indispensable. >> >> The reason why I am no longer sure about my position in this issue is >> because -while I agree that generics is useful- I don't think that generics >> is essential. In fact, all of C++ features are useful and implemented in a >> very efficient manner, but take a look what happened when you slab that >> many features together. If you can do away with less, I think you should go >> for less. The trouble is deprecating language features is a lot harder than >> deprecating APIs in the standard library, while programming fads come and >> go. >> > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.