Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
courses:cs331-201701:final [2019/04/30 14:47]
sellis [Coding Standards and Conventions]
courses:cs331-201701:final [2019/04/30 14:48] (current)
sellis [Coding Standards and Conventions]
Line 97: Line 97:
  
   * All local identifiers (including formal parameter names) must be in lower case only.   * All local identifiers (including formal parameter names) must be in lower case only.
 +
 +  * Python enforces consistent indentation as part of its language grammar. Indents should be 4 spaces or 1 tab.
  
   * Reserved words which require parentheses (e.g. ''​if (...)''​) must have a space between the reserved word and the parenthesis. Other functions (e.g. ''​GetNextToken()''​) must not have this space.   * Reserved words which require parentheses (e.g. ''​if (...)''​) must have a space between the reserved word and the parenthesis. Other functions (e.g. ''​GetNextToken()''​) must not have this space.