Re: [rust-dev] Coding style for struct expression

2013-05-21 Thread Jack Moffitt
>> I use 1 as well. If there's no other opposition, can we add this to the >> style guide? >> > > I'm in favor, maybe emphasizing to only do this for small structs. +1 jack. ___ Rust-dev mailing list Rust-dev@mozilla.org https://mail.mozilla.org/listinf

Re: [rust-dev] Coding style for struct expression

2013-05-21 Thread Brian Anderson
On 05/21/2013 04:26 PM, Erick Tryzelaar wrote: I use 1 as well. If there's no other opposition, can we add this to the style guide? I'm in favor, maybe emphasizing to only do this for small structs. ___ Rust-dev mailing list Rust-dev@mozilla.org htt

Re: [rust-dev] Coding style for struct expression

2013-05-21 Thread Erick Tryzelaar
I use 1 as well. If there's no other opposition, can we add this to the style guide? On Tue, May 21, 2013 at 2:34 PM, Brian Anderson wrote: > On 05/21/2013 02:27 PM, Brian Anderson wrote: > >> On 05/21/2013 01:03 AM, Sanghyeon Seo wrote: >> >>> What is the preferred coding style for the struct e

Re: [rust-dev] Coding style for struct expression

2013-05-21 Thread Brian Anderson
On 05/21/2013 02:27 PM, Brian Anderson wrote: On 05/21/2013 01:03 AM, Sanghyeon Seo wrote: What is the preferred coding style for the struct expression? Given: struct Point { x: float, y: float } Point { x: 1.0, y: 1.0 } // (1) Point{x: 1.0, y: 1.0} // (2) Tutorial uses 1, pretty p

Re: [rust-dev] Coding style for struct expression

2013-05-21 Thread Patrick Walton
On 5/21/13 2:27 PM, Brian Anderson wrote: On 05/21/2013 01:03 AM, Sanghyeon Seo wrote: What is the preferred coding style for the struct expression? Given: struct Point { x: float, y: float } Point { x: 1.0, y: 1.0 } // (1) Point{x: 1.0, y: 1.0} // (2) I prefer neither: Point

Re: [rust-dev] Coding style for struct expression

2013-05-21 Thread Brian Anderson
On 05/21/2013 01:03 AM, Sanghyeon Seo wrote: What is the preferred coding style for the struct expression? Given: struct Point { x: float, y: float } Point { x: 1.0, y: 1.0 } // (1) Point{x: 1.0, y: 1.0} // (2) Tutorial uses 1, pretty printer does 2. It seems to me that when an expr

[rust-dev] Coding style for struct expression

2013-05-21 Thread Sanghyeon Seo
What is the preferred coding style for the struct expression? Given: struct Point { x: float, y: float } Point { x: 1.0, y: 1.0 } // (1) Point{x: 1.0, y: 1.0} // (2) Tutorial uses 1, pretty printer does 2. It seems to me that when an expression is on multiple lines, spaces are common,