← Back to context Comment by baby 9 months ago mod.rs is better, change my mind 4 comments baby Reply metaltyphoon 9 months ago Sure, open 5 tabs named mod.rs, so which mod are you in? baby 9 months ago Open 5 libs.rs, which crate are you in? Always look at full path instead of filename. A mod.rs means a much more cleaner organization, as you know that all of a folder module's content is within that module, and you don't have to look elsewhere. metaltyphoon 9 months ago Yes this would be a problem if for every module you had to create a lib.rs, which is not the case. mod.rs has a much higher # of occurrences. 1 reply →
metaltyphoon 9 months ago Sure, open 5 tabs named mod.rs, so which mod are you in? baby 9 months ago Open 5 libs.rs, which crate are you in? Always look at full path instead of filename. A mod.rs means a much more cleaner organization, as you know that all of a folder module's content is within that module, and you don't have to look elsewhere. metaltyphoon 9 months ago Yes this would be a problem if for every module you had to create a lib.rs, which is not the case. mod.rs has a much higher # of occurrences. 1 reply →
baby 9 months ago Open 5 libs.rs, which crate are you in? Always look at full path instead of filename. A mod.rs means a much more cleaner organization, as you know that all of a folder module's content is within that module, and you don't have to look elsewhere. metaltyphoon 9 months ago Yes this would be a problem if for every module you had to create a lib.rs, which is not the case. mod.rs has a much higher # of occurrences. 1 reply →
metaltyphoon 9 months ago Yes this would be a problem if for every module you had to create a lib.rs, which is not the case. mod.rs has a much higher # of occurrences. 1 reply →
Sure, open 5 tabs named mod.rs, so which mod are you in?
Open 5 libs.rs, which crate are you in? Always look at full path instead of filename. A mod.rs means a much more cleaner organization, as you know that all of a folder module's content is within that module, and you don't have to look elsewhere.
Yes this would be a problem if for every module you had to create a lib.rs, which is not the case. mod.rs has a much higher # of occurrences.
1 reply →