News for hackers. Stuff that matters.
Re:Learning Rust – Day 4 – Understanding Modules by rackjack on Thursday May 12, 2022 @12:57PM (#31356741)
I think the most surprising thing about Rust modules is that you need to """pre-declare""" them, especially since Rust doesn't really use function prototypes.

So when you try to move a module into its own file, you need to keep the `mod foo` in the original file.

Re:Learning Rust – Day 4 – Understanding Modules by pjmlp on Friday May 13, 2022 @01:34AM (#31363711)
Ada,

    with foo; -- Import
    use foo;  -- open namespace
Seems familiar.