News for hackers. Stuff that matters.
Re:Type-checked matrix operations in Rust by jarrettc on Saturday August 08, 2015 @04:47PM (#10028618)
Will the Rust compiler ever understand numbers in types? I.e. will the numbers ever be more than just part of the string that is the type name? If not, then I don't know how possible powers will be. Maybe the solution would be to define some types for commonly-used powers, e.g. PowN4, PowN3, PowN2, PowN1, Pow2, Pow3, Pow4. Users who needed higher powers could define those types themselves, I guess.
Re:Type-checked matrix operations in Rust by steveklabnik on Saturday August 08, 2015 @07:42PM (#10028986)
We do desire type-level integers, yes. There hasn't been an RFC yet, though.