>> 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
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
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
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
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
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
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,