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 {
        x: 1.0,
        y: 2.0,
    }

Patrick


_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to