On Monday, 13 August 2018 at 13:09:24 UTC, Andrey wrote:
On Monday, 13 August 2018 at 13:05:28 UTC, evilrat wrote:
however the best option is simply avoid naming anything with same name as module.

Hmm, I thought that name of class should match name of file...

And how to name a file that contains only one class/struct? Like in my case. What usually true D coders do?)

Modules usually named after their purpose.

Like std.stdio for IO stuff, std.file for file utilities, and complex example is std.algorithm.search for various searching algorithms which is a part of more global std.algorithm package (importing it also brings in several other std.algorithm.* modules).

Not sure about your use case, but seems like parser.d or args.d or argsparser.d (names best to keep lower case in case of OS or FS specific quirks, this is the convention)

Also if you need ready to use arguments parser check this one https://dlang.org/phobos/std_getopt.html

Reply via email to