Talk:Phobos coding conventions

From D Wiki
Revision as of 23:48, 10 December 2012 by Quickfur (talk | contribs) (Items to clarify: new section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Items to clarify

I've added some of the known coding conventions to this page, but I'm not sure what's the official conventions for the following:

  • How to indent signature constraints?
  • How to indent in/out contracts?
  • How to indent complicated deeply-nested expressions inside an if condition?
  • Should operators appear before or after a line break in a wrapped line?
  • Are there preferred break points when multiple subexpressions are involved?
  • etc..

Probably there are no hard answers to some of these questions, but a rule of thumb would be nice to set down.