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

> they make 80% of what we would like to have generics for

I regularly use generics in other languages for tasks unrelated to "containers"/data structures. They allow me to write less code and have the compiler check my mistakes.

Containers are frequently where people start with parameterized types, but once you are in the habit of using them actively that's rarely where you stop.




> once you are in the habit of using them actively that's rarely where you stop.

Eh. Many people don't ever go beyond that and it's fine, containers-type structures (to which I include stuff like futures or option types) and functions working on those are by far the most common use case.


For sure. But people like me write code for many-people. Giving us the tools to help make things better for many-people is wise. ;)




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

Search: