Re: [rust-dev] Convenience syntax for importing the module itself along with items within

2014-06-06 Thread Tommi
Due to a lack of objections, I made an RFC at: https://github.com/rust-lang/rfcs/pull/108 On 2014-06-03, at 19:56, Gulshan Singh wrote: > +1, I was planning on suggesting this as well. > > On Jun 3, 2014 2:16 AM, "Tommi" wrote: > I find it somewhat jarring to have to spend two lines for the f

Re: [rust-dev] Convenience syntax for importing the module itself along with items within

2014-06-03 Thread Gulshan Singh
+1, I was planning on suggesting this as well. On Jun 3, 2014 2:16 AM, "Tommi" wrote: > I find it somewhat jarring to have to spend two lines for the following > kind of imports: > > use module::Type; > use module; > > So, I suggest we add a nicer syntax for doing the above imports using the > fo

[rust-dev] Convenience syntax for importing the module itself along with items within

2014-06-03 Thread Tommi
I find it somewhat jarring to have to spend two lines for the following kind of imports: use module::Type; use module; So, I suggest we add a nicer syntax for doing the above imports using the following single line: use module::{self, Type}; It would probably be a good idea to force the `self