News for hackers. Stuff that matters.
Re:An Update on Go and Generics in 2019 by LordHeini on Tuesday March 12, 2019 @08:29AM (#19367461)
Too sad that it will "take time".

I worked on 3 projects in Go and in 2 of those generics would have been very useful.

I ended up copy pasting a bunch of functions and changing their types (interfaces would have been even worse in those cases).

There is a library doing that automatically, like c++ templating but worse since it is not part of the compiler.

Combined with anti-features like null pointers, rather stupid and overly verbose error handling and awful dependency management, it makes for a language which often feels hindered by shortsighted oversimplification.

I kind of like the simplicity of Go. But they lobbed too many things over board without having proper replacements. And repeated dumb stuff from other languages which should be no part of any modern language (Billion Dollar Mistake ect.)

There are no comments on this comment yet.