What Kind of Use
Advertisement
I asked earlier what Type Constructor Polymorphism is useful for. I feel they are really useful when programming in a typeful and functional way. They are useful for writing flexible, better abstracted code and reduce code duplication. Once you start in that style it is painful to drop back down to mere generics.
Usually though, the combined power of increased flexibility while allowing static checking is not necessary since usually one works in only a few instances of the types they abstract over.
However in an imperative framework with reflection and some dynamic features they are not so needed. At the cost of safety and clear abstraction power.
Usually though, the combined power of increased flexibility while allowing static checking is not necessary since usually one works in only a few instances of the types they abstract over.
However in an imperative framework with reflection and some dynamic features they are not so needed. At the cost of safety and clear abstraction power.
Advertisement
Advertisement
Advertisement
Discussion