Difference between revisions of "Comment (computer programming)"
Karl Jones (Talk | contribs) (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...") |
Karl Jones (Talk | contribs) |
||
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 | + | 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
- Comment (computer programming) @ Wikipedia