Post 793736 by nbering@mastodon.xyz
 (DIR) More posts by nbering@mastodon.xyz
 (DIR) Post #779737 by veer66@toot.veer66.rocks
       2018-10-26T15:06:04.995693Z
       
       0 likes, 0 repeats
       
       Static and strong typing programming languages without generic* Go 1.X* Java < 1.5
       
 (DIR) Post #793736 by nbering@mastodon.xyz
       2018-10-27T05:54:58Z
       
       1 likes, 1 repeats
       
       @veer66 Early versions of C# didn’t have generics. Collections and lists were a nightmare. There were basically 3 options:1. Hand-craft a custom Collection that inherited from the base collection, with method overrides that returned your custom types2. Same as option 1, but with code generation templates3. Cast everything to Object, and pray you don’t end up with a list of something else when you cast it back to your custom typeGenerics are soo much nicer.
       
 (DIR) Post #793868 by veer66@toot.veer66.rocks
       2018-10-27T06:24:54.707392Z
       
       0 likes, 0 repeats
       
       @nbering I guess C++ templates were many people's nightmares. And later, they found the alternative is terrible too. 😥