News for hackers. Stuff that matters.
Re:Dependent Haskell by pjmlp on Tuesday December 18, 2018 @02:32AM (#18705085)
In a very abstract way, it is a way to encode relationships between types on the type system.

You can express things like how are you allowed to consume elements from a data structure, how many elements a specific data structure is allowed/expected to have, how their form looks like and so forth, all at compile time.

Thus working as kind of profs that certain functions can only be called if the conditions are met.

https://en.wikipedia.org/wiki/Type_system

There are no comments on this comment yet.