Lokathor / safe_arch

Exposes arch-specific intrinsics as safe function (via cfg).
https://docs.rs/safe_arch
Apache License 2.0
48 stars 8 forks source link

Delete underscores from submodule filenames #63

Closed Soveu closed 4 years ago

Soveu commented 4 years ago

They are just annoying to type everytime

Soveu commented 4 years ago

Or maybe we should re-organize code a little bit Now src/lib.rs mostly contains code related to x86/x64 arch, I suggest to move it into src/x86_x64/mod.rs. It will make lib.rs cleaner and ready for other architectures

Lokathor commented 4 years ago

the underscores have to be there or it conflicts with the naming of the type, since module paths and type paths "live in the same namespace" in the eyes of rust.

Lokathor commented 4 years ago

As to a total re-organization, I'm not against the general idea, and I agree that once ARM intrinsics are ready to be added we might have to re-think things, but I've really never liked either mod.rs or foo.rs being next to the foo/ folder. I'm pretty big on this new inline module based style that I was shown a few months ago, since it lets you avoid both.