Difference between revisions of "Talk:Phobos coding conventions"

From D Wiki
Jump to: navigation, search
(Items to clarify: new section)
 
(+UFCS)
Line 8: Line 8:
 
:* Should operators appear before or after a line break in a wrapped line?
 
:* Should operators appear before or after a line break in a wrapped line?
 
:* Are there preferred break points when multiple subexpressions are involved?
 
:* Are there preferred break points when multiple subexpressions are involved?
 +
* How to indent a long series of UFCS method calls?
 
* etc..
 
* etc..
  
 
Probably there are no hard answers to some of these questions, but a rule of thumb would be nice to set down.
 
Probably there are no hard answers to some of these questions, but a rule of thumb would be nice to set down.

Revision as of 23:51, 10 December 2012

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?
  • How to indent a long series of UFCS method calls?
  • etc..

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