News for hackers. Stuff that matters.
Re:Rust 1.0: Scheduling the trains by Sir_Cmpwn on Friday December 12, 2014 @11:48AM (#8741111)
I put together a small demonstration for you:

https://github.com/SirCmpwn/rust-poc

Re:Rust 1.0: Scheduling the trains by steveklabnik on Friday December 12, 2014 @11:52AM (#8741138)
That is one, very, very tiny aspect of the C preprocessor.

And https://github.com/SirCmpwn/rust-poc/blob/master/includes.rs... is significant: the code included from another file is under a namespace, and isn't going to clash like randomly throwing #includes around will, and you don't need to worry about things like double inclusion...

In other words, I think this is a very superficial comparison, and I'm not even sure why it upsets you so. Rust won't be a perfect language for everyone, and that's okay.

Re:Rust 1.0: Scheduling the trains by Sir_Cmpwn on Friday December 12, 2014 @11:53AM (#8741149)
Well, you could move the mod { } to the included file to accomplish the same result (like the `namespace` keyword in C#), but that'd break the example I'm trying to give. I don't really want to rehash this argument on Hacker News, I'm just providing context. There are numerous flaws in the module system that derive from this basic point.