3 ms·
> I'll be happy if generics will be never included in Go. They will definitely reduce code readability, will increase binary sizes and will increase compile tim
by throw_m239339 6y ago
> I'll be happy if generics will be never included in Go. They will definitely reduce code readability, will increase binary sizes and will increase compile times because of generics' abusers.
Well you don't have to use them and you won't have to use any of the libraries that use them. Just like C++ templates, some C++ shops forbid their use. But that's your problem, don't make everybody else suffer from what is considered a burden and a flaw in that language.
People want compile time type safety, not having to resort to runtime reflection, which Go std lib itself does . There is nothing unfathomable about that thought process. Go has a poor type system at compile time while being way too permissive at runtime.
- valyala 6y agoIt would be great if you could provide practical examples where generics could significantly improve Go code.
- throw_m239339 6y ago> It would be great if you could provide practical examples where generics could significantly improve Go code. It would be great if you stopped patronizing people who just provided you an explanation you just don't want to hear.