On Friday, 29 April 2016 at 16:14:30 UTC, Bruno Medeiros wrote:
Why is this useful in any substantial way?

I use modules for grouping compile time configuration options in independent files that can be swapped out. The module name doesn't match the file name because there are several files with the same module name, only one of which is used at a time.

It is also valuable to swap out library implementations. For example, when modifying Phobos modules, instead of recompiling the whole thing, I can just specify the path to my modified version.

dmd yourfile.d phobosfork.d

no need to recreate layers of folders just to appease a random rule.

I also hate having empty folders laying around, and matching names would force that.

Reply via email to