[Rust] Imports make sense!!
Rust:
// Bring the name Baz into scope:
use foo::bar::Baz;
// Use the name Fuzz with a fully-qualified path:
var x: foo::bar::Fuzz();
Python:
// Bring the name Baz into scope:
from foo.bar import Baz
// Use the name Fuzz with a fully-qualified path:
import foo
x = foo::bar::Fuzz()
In Rust, the "root" name space (the one with all crates ever), is just there implicitly in rust. Granted it appears in Cargo.toml
. Not sure if any of this matters. Observation time.