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.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev
