4 ms·
Oh wow, string prefix checking is the example you want to run with? In C#: toCheck.StartsWith(prefix) Meanwhile in Golandia, this is still an issue: https:
by easuter 10y ago
Oh wow, string prefix checking is the example you want to run with? In C#:
toCheck.StartsWith(prefix)
Meanwhile in Golandia, this is still an issue:
https://github.com/golang/go/issues/16721#issuecomment-240154080 https://github.com/golang/go/issues/16721#issuecomment-24015...
...and I haven't felt this kind of pinch when using C#, ever. But what do I know? I'm just a .NET wage-slave pleb who's too mentally handicapped to see Go's glory.
- IshKebab 10y agoIt was just a simple example. Of course many languages have that. The point is Go nearly always has what you want. Don't pretend that there aren't things in C# that are better in Go. And I agree, the min/max thing is stupid. I never said Go was perfect.
- easuter 10y agoNot being a Gopher myself, and seeing whats missing from Go compared to C#, I don't see why I'd ever bother using it (unless it's a work requirement). I like generics and the things that come with it, like LINQ and manipulating abstract collections in a type-safe manner, thank you very much :)