News for hackers. Stuff that matters.
Re:In Further Praise of Dependent Types by throwaway17_17 on Monday May 11, 2020 @09:33AM (#23141920)
It is a stretched analogy and omits both practical (at the proof level) and theoretical subtlety, but you can sort of think of a dependently typed function as a compile time macro or a template-like generic. However, I think it would be fair to say that macros and generics are merely a mechanized implementation of a very small slice of what dependent types are capable of in full generality

There are no comments on this comment yet.