News for hackers. Stuff that matters.
Re:Announcing Rust 1.28 by lordnaikon on Thursday August 02, 2018 @06:37PM (#17676053)
Is this what is known as pi or dependent types?
Re:Announcing Rust 1.28 by eddyb on Friday August 03, 2018 @03:44AM (#17677976)
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

Re:Announcing Rust 1.28 by steveklabnik on Thursday August 02, 2018 @07:26PM (#17676289)
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.