Re:Go 2 Draft Designs
by norswap on Tuesday August 28, 2018 @04:47PM
(#17862730)
Complete bullshit. Generics have 0 relationship or co-dependency of any kind with the abstraction slash design patterns you mention. These are entirely possible without generics, and generics does not in any way encourage them.
[ Parent
| on HN ]
Re:Go 2 Draft Designs
by stcredzero on Tuesday August 28, 2018 @04:57PM
(#17862813)
There are less common design patterns particular to generics. The presence of generics does tend to encourage those. I have seen subsystems where coders used C++ templates where they could have used polymorphism instead.
Re:Go 2 Draft Designs
by nostrebored on Tuesday August 28, 2018 @04:55PM
(#17862794)
... I'm sorry, that's a bold claim when a large chunk of these patterns are literally used to allow for you to be able to operate over a variety of different objects in a loosely coupled fashion