3 ms·
> I don't agree on the general usage of "using namespace std", so that part does not bother me. It should: we're comparing to Rust, whose namespace system seem
by Ace17 11y ago
> I don't agree on the general usage of "using namespace std", so that part does not bother me.
It should: we're comparing to Rust, whose namespace system seems very similar to a "using namespace std".
- arielb1 11y agoRust only provides short reexports for a stable set of a few dozen items, rather than the "entire universe" of `using namespace std`. The only types that have a default reexport are `Option`, `Result`, `Box`, `String` and `Vec`.
- steveklabnik 11y agoTo be even more specific, http://doc.rust-lang.org/std/prelude/ http://doc.rust-lang.org/std/prelude/
- pcwalton 11y ago> we're comparing to Rust, whose namespace system seems very similar to a "using namespace std". Not at all; only if you use globs ("use foo::*"). D's namespace system is like that, but not Rust's.