4 ms·
Here's a quick example of ordinary code that is much easier to write with generics: https://news.ycombinator.com/item?id=49128954 https://news.ycombinator.com/i
by troupo 3mo ago
Here's a quick example of ordinary code that is much easier to write with generics: https://news.ycombinator.com/item?id=49128954 https://news.ycombinator.com/item?id=49128954
Working on any collection is easier with generics. Working with anything that accesses data in uniform way (APIs, SQL etc.) is easier with generics.