Coding Standards

Russel Winder russel at russel.org.uk
Thu Jul 14 20:17:24 PDT 2011


On Thu, 2011-07-14 at 18:56 -0700, Walter Bright wrote:
> On 7/14/2011 6:33 PM, Jonathan M Davis wrote:
> > Personally, I do _not_ want to see any kind of official coding standard which
> > tries to regulate formatting.
> 
> http://digitalmars.com/d/2.0/dstyle.html
> 
> The idea of the current D style guide is not to force anything on anyone, it's 
> more of a default to fill in the vacuum when people look for a style guide, 
> who'd prefer to use an existing one rather than invent one.

Which is exactly what PEP-8 is for Python -- it is the default style
guide that people can fall back on if there is no agreed style for a
given project by the people working on that project.  The power of a
sensible default is strong.

But as someone said in another post, Python is special compared to the
curly bracket languages due to the block formatting rules.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at russel.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110715/132aa324/attachment.pgp>


More information about the Digitalmars-d mailing list