I'm tentatively in favor of this proposal. Might be a good idea to hold off on the dot notation switch though.

I also wonder if one should have to explicitly import trait methods as well.

To make Niko's proposal clearer: here's how one would define the MyType:

    mod foo {
        mod bar {
            struct MyType { ... }
            impl MyType {
                fn new() -> MyType {
                    MyType { ... }
                }
            }
        }
    }

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

Reply via email to