Lucian Branescu wrote:
This looks nice, the only downside is that changing between one and two traits requires editing in two places.. Perhaps if parens were merely optional with one trait and <T:(Eq)> was valid this would be mitigated somewhat.
I was assuming they'd be optional for the single trait case. For the reason you state, I also considered the possibility of writing <T(Eq)> instead of <T:Eq>, but that seemed like a strictly larger change that also has implications for our "impl Type: Trait" syntax (which of course @pcwalton wants to change to "impl Trait for Type").
Niko _______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
