News for hackers. Stuff that matters.
Re:How generics were added to .NET by kbsletten on Monday March 05, 2018 @08:20PM (#16526150)
Well, really their hand was forced because they needed to be able to specialize all of the array-of-primative types. It's not as much they saw the advantage as they couldn't imagine a language where you can't express `byte []`. But the point stands that they could have realized that `ArrayList <byte>` is almost as fundamental and created refied generics for user-defined types as well.
Re:How generics were added to .NET by KMag on Tuesday March 06, 2018 @02:25AM (#16527429)
They could have had type erasure for all arrays of non-primitives. Their hand was not forced.