Hacker News new | ask | show | jobs
by retrodaredevil 530 days ago
Not sure how I didn't find this before, but https://github.com/zyedidia/generic looks like a decent library.

Although there are some decent libraries out there for this kind of thing, my complaint mostly stems from the fact that a lot of existing code doesn't involve generics yet.

I think I remember skimming an article about for range loops on Hacker News a while back, but again, my main complaint is still that existing code exists in a way that doesn't incorporate all these new features yet.