Makes sense. One counter point though, which I find more persuasive: the more common case by far is surely a single lifetime parameter and a single type parameter. In which case Foo<'lt,X> seems less noisy than Foo{'lt}<X>.
Having said that, Graydon gently invoked BDFL rights to push against using the curlies. :-) So that ship has presumably sailed. On 1/31/13 1:37 PM, "Malte Schütze" <malte.schue...@fgms.de> wrote: >On 01/31/2013 09:58 PM, Dean Thompson wrote: >> On 1/31/13 12:56 PM, "Malte Schütze" <malte.schue...@fgms.de> wrote: >>> I really prefer Foo{'lt}<X,Y> over Foo'lt<X,Y> - the former makes it >>> visually clearer to me where each section of the declaration starts and >>> ends. >> The non-curly choice is Foo<'lt,X,Y>. How does that grab you? >> >> Dean > >I'm worried that it might be confusing to read when it becomes longer. >Foo<'lt,X,Y> still is readable, but Foo<'lt,'xy,X,Y,Z> isn't anymore. >Having it in curly braces (Foo{'lt,'xy}<X,Y,Z>) breaks it down in >smaller parts and makes it easier to understand in my opinion. >_______________________________________________ >Rust-dev mailing list >Rust-dev@mozilla.org >https://mail.mozilla.org/listinfo/rust-dev _______________________________________________ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinfo/rust-dev