News for hackers. Stuff that matters.
Re:Why Generics? by mrkeen on Wednesday July 31, 2019 @04:08PM (#20577930)
I'll give the 'why' rather than the 'what'. In most mainstream languages you take a List<Int> and substitute for List<X> without changing the implementation of List. But there's another substitution you could have made, which is L<Int>. HKT allows you to parametrise L over Int, in the same way you were able to parametrise List over Int.
Re:Why Generics? by icedchai on Wednesday July 31, 2019 @05:00PM (#20578492)
Thanks for the practical, plain English definition. As someone many years out of school, it is appreciated.