Skip to content

Migrate mod.rs files to named module files #1383

Description

@LastExceed

Reasons to prefer named module files:

  • mod.rs breaks the otherwise consistent relation between file hierachy and module hierachy
  • name and location of a file should be independent of whether or not the module it represents has submodules
  • having many files with the same name can be confusing to navigate
  • the rust reference recommends using the newer convention

Reasons to stick with mod.rs:

  • No transition effort required

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions