Re:Ask HN: How can Higher Kinded Types help in domain driven...
by Benjmhart on Monday April 08, 2019 @01:16AM
(#19602343)
Higher kinded types create a context arlu d the types(and ultimately the values) they wrap. This can type classes which implement a the same function in different ways for the same value wrapped in a different higher kinded type, for example. So if your domain deals with values in two contexts, and you want to manipulate them using a common language, higher kinded types are a pretty great way to achieve that. They also enable parametric polymorphism, and that creates a LOT of predictable behaviours for free, which in turn allows you to automatically derive typeclasses, interfaces, and theorem proofs in certain situations.
[ Parent
| on HN ]
There are no comments on this comment yet.