▲ | galangalalgol 4 hours ago | |||||||||||||||||||||||||
I thought dependent types were types that depended on a value? What they are proposing are types that depend on types or compile time constants. | ||||||||||||||||||||||||||
▲ | zozbot234 4 hours ago | parent [-] | |||||||||||||||||||||||||
The problem is combining the "const generic" and "expression" part. If your "compile time constants" can actually be complex expressions, you arguably end up with the same kind of generality as dependent types. This is true even for expressions that are only evaluated in a compile-time context, since dependently-typed languages do "everything" at compile time anyway, they don't have a phase distinction where you can talk about "runtime" being separate. | ||||||||||||||||||||||||||
|