Difference between revisions of "Comment (computer programming)"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(Created page with "In computer programming, a '''comment''' is a programmer-readable annotation in the source code of a computer program. == Description == They are added with the...")
 
Line 5: Line 5:
 
They are added with the purpose of making the source code easier to understand, and are generally ignored by [[Compiler|compilers]] and [[Interpreter (computing)|interpreters]].
 
They are added with the purpose of making the source code easier to understand, and are generally ignored by [[Compiler|compilers]] and [[Interpreter (computing)|interpreters]].
  
The [[Syntax (computer programming)|syntax]] of comments in various [[Programming langauge|programming languages]] varies considerably.
+
The [[Syntax (computer programming)|syntax]] of comments in various [[Programming language|programming languages]] varies considerably.
  
 
As well as of direct use to any [[programmer]] reading the [[source code]], comments are sometimes processed in various ways to generate documentation external to the source code itself by [[Documentation generator|documentation generators]], or used for integration with source code management systems and other kinds of external programming tools.
 
As well as of direct use to any [[programmer]] reading the [[source code]], comments are sometimes processed in various ways to generate documentation external to the source code itself by [[Documentation generator|documentation generators]], or used for integration with source code management systems and other kinds of external programming tools.

Revision as of 20:25, 20 September 2016

In computer programming, a comment is a programmer-readable annotation in the source code of a computer program.

Description

They are added with the purpose of making the source code easier to understand, and are generally ignored by compilers and interpreters.

The syntax of comments in various programming languages varies considerably.

As well as of direct use to any programmer reading the source code, comments are sometimes processed in various ways to generate documentation external to the source code itself by documentation generators, or used for integration with source code management systems and other kinds of external programming tools.

The flexibility provided by comments allows for a wide degree of variability, but formal conventions for their use are commonly part of programming style guides.

See also

External links