- Appeared in:
- 29 Mar 2004
Comment (sometimes abbreviated CPL, from Comment Programming Language) is a joke programming language, which supports comments in syntax of most programming language existing — but nothing else.
Comment was created by Brian Egge in 2004 as the simplest language with support of all possible ways of commenting. In his only article about the language the author writes:
…I can’t say how many times I’ve been writing a SQL query and insert a Visual Basic single quote for a comment. Then I write a batch file, and have to write comments totally different. My goal is to give people freedom and flexibility in putting comments in their code.
Comment supports the following comments syntaxes:
! FORTRAN 90
' Visual Basic
@ APL ASCII
<!-- XML -->
/* Nested /*comments*/ are good*/
Any non-whitespace code in the program is prohibited; an attempt to compile it results in a syntax error.