News for hackers. Stuff that matters.
Re:How We Went from 30 Servers to 2: Go by methehack on Wednesday March 13, 2013 @12:03AM (#5366743)
Thank you for your answer. If you're right and this is the Go way to do it (and I have no reason to doubt you), it's exactly what I was afraid of. I can see why for loops would just read better. Feels like a step in the wrong direction though -- at least for me.
Re:How We Went from 30 Servers to 2: Go by gnuvince on Wednesday March 13, 2013 @12:38AM (#5366844)
Go's lack of parametric polymorphism is an abundant source of Internet debate; proponents of Go say that it keeps the language simpler and find that they don't miss it in practice. I won't get into that debate (it's too late anyway), but I'll say that if you are writing an application, that kind of polymorphism might not be as useful since you can know all the types of your application. Why bother making a generic function if you know you are only ever going to use it with strings? When you are writing libraries however, you don't have this sort of freedom.