Suggest aesthetic way to Naming a module or a package with illegal lexical D lang keywords
Jonathan M Davis
newsgroup.d at jmdavisprog.com
Sun Jun 16 15:55:34 UTC 2019
On Sunday, June 16, 2019 5:53:30 AM MDT BoQsc via Digitalmars-d-learn wrote:
> On Sunday, 16 June 2019 at 11:38:27 UTC, rikki cattermole wrote:
> > The style guide has an opinion about this (you don't have to
> > follow it).
> >
> > https://dlang.org/dstyle.html#naming_keywords
>
> So if I follow dstyle guidelines on keywords, this would be a
>
> correct non-conflicting result:
> >module _auto._alias._abstract;
> >
> > void main(){
> >
> >}
>
> The underscore way, I kind of liking it, thanks for sourcing the
> idea.
Well, technically, per the style guide, the underscores would go at the end
of the names, not the front, but that's only if you're trying to follow the
style guide rather than be inspired by it.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list