Multiple parameter are very useful eg a collection and a second type , but it gets messy... it works ok provided its in a single compilation unit but else you get compilation unit dependency loops ,with generics ( which are similar) you can auto generate new libs to handle this not sure about rust traits..
Ben Just to recap, rust traits are constrained to be > single-type-parameter. I also read somewhere (but can't find the > reference off-hand) that they are also constrained in the position of > the type parameter in all methods. > > Relaxing the latter constraint would allow more expressiveness, and > relaxing the former would allow even more. > > I am not very clear on how feasible or difficult relaxing either would > be. I don't see particular design problems with relaxing the > positional constraint, but I may be missing other related aspects of > rust. There may be some confusing cases or developer confusion around > multi-parameter traits. > >
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
