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

Agreed. Generics are in most modern typed languages, and traits are essentially interfaces. Maybe templates means C++ templates, which are essentially generics?


In C++, concepts are essentially generics where templates are more like weird macros.


My guess is they meant metaprogramming in general (templates/generics, macros), but traits are not quite like the others.




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

Search: