'!' and naming conventions
Jonathan M Davis via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jun 18 14:58:32 PDT 2014
> Sent: Wednesday, June 18, 2014 at 11:02 PM
> From: "Brad Anderson via Digitalmars-d-learn" <digitalmars-d-learn at puremagic.com>
> To: digitalmars-d-learn at puremagic.com
> Subject: Re: '!' and naming conventions
>
> There is a style guide on the website:
> http://dlang.org/dstyle.html
>
> Personally I just consider this a Phobos contributor style guide
> and not like a PEP8 style guideline.
It was written with the hope that it would be generally followed by the D
community, and that's part of the reason that it specifically focuses on the
API and not the formatting of the code itself. So, ideally, most D projects
would follow it (particularly if they're being distributed publicly) so that
we have consistency across the community (particularly with regards to how
things are captitalized and whatnot), but by no means is it required that
every D project follow it. It's up to every developer to choose how they want
to go about writing their APIs. We're not fascists and don't require that all
code out there be formatted in a specific way or that all APIs follow exact
naming rules (we couldn't enforce that anyway). But still, I would hope that
most public D librares would follow the naming guidelines in the D style
guide.
Now, for Phobos, it's required, and there are even a couple of formatting
rules added to the end specifically for Phobos, but outside of official D
projects, it's up to the developers of those projects to choose what they want
to do.
- Jonathan M Davis
More information about the Digitalmars-d-learn
mailing list