4 ms·
For the record I'm not trying to argue generics are not important, on the contrary having worked with them for years go seems to be too limiting in this matter
by Shoothe 9y ago
For the record I'm not trying to argue generics are not important, on the contrary having worked with them for years go seems to be too limiting in this matter for my practical use.
But I agree they can be tricky to get right (compare e.g. declaration-site vs use-site variance [0]) or "accidentaly Turing-complete" TypeScript [1].
[0]: https://schneide.wordpress.com/2015/05/11/declaration-site-and-use-site-variance-explained/ https://schneide.wordpress.com/2015/05/11/declaration-site-a...
[1]: https://gist.github.com/hediet/63f4844acf5ac330804801084f87a6d4 https://gist.github.com/hediet/63f4844acf5ac330804801084f87a...