Hacker News new | ask | show | jobs
by lordnaikon 2877 days ago
Is this what is known as pi or dependent types?
2 comments

Yes, but limited to being applied at compile-time, with constant arguments.

Fully general dependent type would allow passing in runtime values, which is significantly harder to type-check and execute

I believe that this initial version is not quite fully pi types; we did have an RFC for those but it was deemed too large to start off with.