3 ms·
I didn't say one or the other was easier, just that extending a type system like Rust's with an attitude towards stability like Rust's is not simple. > I don't
by steveklabnik 6y ago
I didn't say one or the other was easier, just that extending a type system like Rust's with an attitude towards stability like Rust's is not simple.
> I don't know why Rust doesn't got for HKTs.
In my understanding, the benefits are less clear. You don't just get Monad for free because you have HKTs. ATC/GATs are much more clearly needed.
- Ericson2314 6y agoYou indeed don't get Monad for free, we're in agreement. To pick a use case dear to Rust, it's definitely the best way to e.g. write data structures that are parameterized over say Rc, Arc, or some Gc. Again, I say "the best" with pedagogy and productivity in mind: the error messages are better and intent clearer with this mechanism over the associated type alternatives.