Hacker News
new
past
comments
ask
show
jobs
points
by
throwaway27448
1 days ago
|
comments
by
Cpoll
16 hours ago
|
[-]
Agreed. Generics are in most modern typed languages, and traits are essentially interfaces. Maybe templates means C++ templates, which are essentially generics?
reply
by
nesarkvechnep
15 hours ago
|
parent
|
next
[-]
In C++, concepts are essentially generics where templates are more like weird macros.
reply
by
mihaelm
15 hours ago
|
parent
|
prev
|
[-]
My guess is they meant metaprogramming in general (templates/generics, macros), but traits are not quite like the others.
reply