Ok. That makes sense... and is there a tutorial where I can learn my way
around the module system? I was trying things like "use int" because I
didn't realize I should say "use std::int" when "use std" is implied in
every program by default.
On Jul 11, 2013 6:29 AM, "Corey Richardson" <[email protected]> wrote:

> On Thu, Jul 11, 2013 at 7:24 AM, Josh Leverette <[email protected]>
> wrote:
> > Does it really make sense for me to be able to use the type 'int' if I
> > haven't declared the module for it? Or the opposite perspective, does it
> > really make sense for me to not be able to use the functions in int's
> module
> > if I can use int? I understand it's a built-in, implicit type, but it
> still
> > feels inconsistent.
> >
>
> Thing is, there shouldn't be any useful free functions there,
> everything dealing with numerics should be coming from std::num or
> methods on the types.
>
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to