On 5/12/11 9:44 AM, Marijn Haverbeke wrote:
I went ahead an implemented a large part of this--using a single colon
as a module separator, and downcasing the module names again. A
separate module namespace isn't done yet. Look around
https://github.com/marijnh/rust/tree/modulesep if you're curious what
it looks like.

I'd prefer ::, if for no other reason than that it's consistent with C++, Ruby, PHP, and Perl. Also fewer special cases in the grammar are always nice. Graydon can cast the deciding vote here :)

I always figured that "import foo::bar" or "from foo import bar" would import both the "bar" item and the "bar" module if both exist. I don't see much harm in that off the top of my head.

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

Reply via email to