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 printer does 2. It seems to me that when an
expression is on
multiple lines, spaces are common, but for a single line it is mixed.
core::path uses 1,
but core::iterator uses 2.
I use 2.
He's lying. Brian actually uses 1.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev