3 ms·
> I'm back to programming in swift after half a year of doing go only, and i'm more and more sceptical on the benefits of adding generic programming to the lang
by throw_m239339 6y ago
> I'm back to programming in swift after half a year of doing go only, and i'm more and more sceptical on the benefits of adding generic programming to the language.
That's fine, you won't have to use them, or even use code that depends on generics.
And I won't have to remember a dozens of silly slice tricks each time I have to implement complex data pipelines with different struct types.
https://github.com/golang/go/wiki/SliceTricks https://github.com/golang/go/wiki/SliceTricks
Everybody is happy.
- badsectoracula 6y agoIf "you won't have to use it" is something people accepted then wouldn't everyone stick with kitchensink languages like C++ instead of coming up with new "clean" ones like Python, Java, C#, etc? :-P
- throw_m239339 6y ago> If "you won't have to use it" is something people accepted then wouldn't everyone stick with kitchensink languages like C++ instead of coming up with new "clean" ones like Python, Java, C#, etc? :-P No because C++ still requires some amount of manual memory management, unlike the rest of languages you listed.