Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There is a big difference here. The draft is about adding generics to the Go stdlib, not about if it's possible. Is it even possible? Yeah, there are some implementation (e.g. https://github.com/cheekybits/genny). So Go is not "far behind" C, which also does not have generics (or did I miss something in C11/C17?).


You missed, C17 introduced lightweight generics via _Generic and C2X plans to extend it further.


Tiny correction, _Generic was introduced in C11.


Thanks, that is what happens when I don't cross check my memories. :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: