3 ms·
I used to code in C# before Go. This isn't my first rodeo. Or even my second. And I get that Go lacks in some areas. That's fine. All languages lack in some ar
by marcus_holmes 6y ago
I used to code in C# before Go. This isn't my first rodeo. Or even my second.
And I get that Go lacks in some areas. That's fine. All languages lack in some areas. Go wasn't designed to be all things to all people. It's very good at writing servers in. And there's a few projects written in Go that have proven to be pretty popular and scaled well ;)
It's not really YAGNI, which Go has been accused of (a lot), with some justification. It's more that simplicity is valuable, but it has a cost. Keeping Go simple is good, but the price of that simplicity is sometimes high. As you say, there is an opportunity cost.
I still think that cost is worth paying, and I'm not convinced (yet - I may be in time) that the reduction in simplicity that comes with generics is a price worth paying for the flexibility it brings.