News for hackers. Stuff that matters.
Re:What can Rust do for astrophysics? by criddell on Monday February 13, 2017 @08:06AM (#13634918)
I looked at the Rust documentation's getting started page and it says:

> If you’re using more than one word in your filename, use an underscore: hello_world.rs rather than helloworld.rs.

Is the use of underscores a recommendation or a limitation?

Re:What can Rust do for astrophysics? by mdzn on Monday February 13, 2017 @08:15AM (#13634953)
Of course it's just a recommendation. Why would you think otherwise? To Rust, module name is just a bunch of characters, it doesn't recognize words anyhow.
Re:What can Rust do for astrophysics? by flukus on Monday February 13, 2017 @06:35PM (#13639905)
It's a recommendation that you'll find everywhere in rust. By default camelCasing will output compiler warnings. It's my only complaint about the language so far, underscores aren't very typing friendly.
Re:What can Rust do for astrophysics? by steveklabnik on Monday February 13, 2017 @11:12AM (#13636329)
It's kinda both. Since module names are identifiers, you can't use -s in them. You can still make it work, I believe, with the path attribute, but you'd need to do it on every mod declaration.