News for hackers. Stuff that matters.
Re:Why Go Is Not Good (2014) by TheDong on Wednesday December 09, 2015 @01:38PM (#10705741)
C has generics as of C11 via '_Generic'. Google can tell you more, and here's a blogpost with examples: http://abissell.com/2014/01/16/c11s-_generic-keyword-macro-a...
Re:Why Go Is Not Good (2014) by klodolph on Wednesday December 09, 2015 @02:10PM (#10705975)
Well, yes, kind of. It's not something you would really use a lot. It doesn't help you with generic types, but only with generic functions. Since it only makes sense when coupled with macros, it really only helps with functions that are written out but accessible by the same name. For example, selecting sinf() or sin(), or writing a max() function.