3 ms·
Developers love to be able to write their magical code and their clever abstractions and often forget that their code is paying the price by becoming less clear
by zoul 8y ago
Developers love to be able to write their magical code and their clever abstractions and often forget that their code is paying the price by becoming less clear and less readable.
Are you saying that it has to be that way with generics? Because I would disagree with that. Cautiously applied, generics can make your code more clear, more readable and, most importantly, more type safe – and not just because of containers, see Swift’s key paths for an example.
- baby 8y agoYes it will be this way for MOST usages with a minor subsets of codebases which will benefit from them.