Personally, Foo<'lt, 'xy, X, Y, Z> is perfectly readable, and far less
noisy-looking than having two delimited lists one after another. It
will be even more readable with syntax highlighting.

If multiple lifetime parameters were really a common thing I might
have liked a second separator, maybe Foo<'lt, 'xy | X, Y Z> or
Foo<'lt, 'xy / X, Y, Z>, but that's a very minor issue.

martin

On Thu, Jan 31, 2013 at 1:37 PM, Malte Schütze <[email protected]> wrote:
> On 01/31/2013 09:58 PM, Dean Thompson wrote:
>>
>> On 1/31/13 12:56 PM, "Malte Schütze" <[email protected]> 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
> [email protected]
> https://mail.mozilla.org/listinfo/rust-dev
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to