5 ms·
> Everyone wants generics, no one knows why This is such a troll'ish statement, but I'll respond anyways because maybe you actually are just that uninformed. W
by slantedview 9y ago
> Everyone wants generics, no one knows why
This is such a troll'ish statement, but I'll respond anyways because maybe you actually are just that uninformed. Without generics any number of libraries that utilize generic function blocks - Func [1] in C#, Callable [2] in Java, etc., and do things like return the function's type parameter as a method result, would not be possible. This is exceedingly common, at least in libraries. If you want to know how common, let me refer you to my friend http://google.com http://google.com.
Just because something isn't valuable to you, personally, doesn't mean it's not valuable. As in all aspects of life, not everyone is you.
1. https://msdn.microsoft.com/en-us/library/bb549151(v=vs.110).aspx https://msdn.microsoft.com/en-us/library/bb549151(v=vs.110)....
2. https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/Callable.html https://docs.oracle.com/javase/7/docs/api/java/util/concurre...
- deleted 9y ago[deleted]