I was hoping the author would provide a clarifying succinct definition I could use to help new people "get" Rust's module system...
I didn't try to provide an explanation because I wasn't sure I could do any better than what I've seen out there already. If there's interest though, maybe it'd be worth giving it a shot!
I'll ping here if I post something :)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Unfortunately it's not quite so straightforward:
Take for example a file foo.rs:
Above, you have
foo.rs
defining a foo module AND a bar module--all within 1 file. The author is right, it is confusing for people to pick up.I was hoping the author would provide a clarifying succinct definition I could use to help new people "get" Rust's module system...
I didn't try to provide an explanation because I wasn't sure I could do any better than what I've seen out there already. If there's interest though, maybe it'd be worth giving it a shot!
I'll ping here if I post something :)