Hacker News new | past | comments | ask | show | jobs | submit login

"The only thing Generics are really extremely useful for is writing data structures that you can re-use with multiple data types." Take a look at C++'s STL: a large set of generic algorithms that work with any data structure (built-in or user-written) supporting the standard iterator protocols. Many people think of STL as "a bunch of container classes", and ignore the algorithms.



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

Search: