Programming style: Difference between revisions

Content deleted Content added
Mountain (talk | contribs)
add interlink to zh.wikipedia.org
Python
Line 24:
'''return''' false
 
we could probably guess correctly it returns true if the time entered is in the [[ante meridiem|AM]].
 
See also: [[identifier naming convention]]
Line 59:
 
=== Spacing ===
[[free-format language|Certain programming languages]] ignore [[whitespace]] absolutely. Making good use of spacing in one's layout is good programming style.
 
Compare the following examples of C code.
Line 69:
printf("%d", count*count + count);
}
 
The [[Python language]] designers have decided to force use of indentation to mark control structures.
By this, they eliminate the need of bracketing with ''[[{]]'' and ''[[}]]'' and try to force readability while not interfering with common coding styles.
However, some programmers don't like being forced to use a style they didn't choose.
 
[[zh-cn:程序风格]]