Difference between revisions of "Talk:Phobos coding conventions"

From D Wiki
Jump to: navigation, search
(+UFCS)
m (boilerplate)
Line 1: Line 1:
 +
{{talk}}
 +
 
== Items to clarify ==
 
== Items to clarify ==
  

Revision as of 19:21, 13 December 2012

This is a talk page. It is to be used for discussion of potentially controversial or otherwise large changes to the article itself.
  • Please use the Add Topic link to start a discussion on a separate topic. Don't start a new topic inside an unrelated section, as it will only cause confusion.
  • As a rule, it is considered bad form to edit somebody else's comments. Instead, post your reply to their comments immediately after.
  • Please sign your comments with four tildes (~~~~) so that we know who said what.

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.