Is D open for different code conventions?
eao197
eao197 at intervale.ru
Mon Jul 30 04:06:43 PDT 2007
On Mon, 30 Jul 2007 14:46:47 +0400, renoX <renosky at free.fr> wrote:
> eao197 Wrote:
>> I just want to ask D's community: it is appropriate if some projects
>> will
>> use different code convention?
>
> Maybe there should be a vote?
I don't think that a vote is appropriate here. IMHO, the better way is
allow to use different code conventions. Yes it leads to styles mixture
(like in C++ when a project uses Qt+ACE+boost), but C++ show that it isn't
a big problem. It is not a good idea to mix different styles in some kind
of projects, like reusable libraries (for example it is bad idea to add
new code to Tango in a different style). But when I wrote my own project
with Tango I want to use my own code convention.
> That said even for class name/typename, there is some weird 'double
> standard': I doubt that you'll find many people who want to switch from
> 'int' to 'Int'..
AFAIK, 'int' is not a class, so it isn't a problem :)
--
Regards,
Yauheni Akhotnikau
More information about the Digitalmars-d
mailing list