Comments is an actively used design pattern.

?Years Old

Languages with Comments include ballerina, c, common-lisp, cpp, dart, elixir, erlang, f-sharp, go, haskell, ini, javascript, julia, matlab, ocaml, perl, php, purescript, python, ruby, sas, turbo-pascal

Example from ballerina:

// A comment

Example from c:

/* hello world */
// hi

Example from dart:

// Hi
/* Assume address is not null. */

Example from elixir:

# this is a comment

Example from erlang:

% hello world program

Example from go:

// This is a comment

Example from haskell:

 -- a single line comment
 {- A multiline comment
    which can continue for many lines
 -}

Example from ini:

# a '#' or ';' character indicates
; a comment

Example from julia:

# This is a comment

Example from matlab:

% This is a comment

Example from ocaml:

(* This is a single-line comment. *)
(* This is a
 * multi-line
 * comment.
 *)

Example from perl:

# This is a comment in perl
=begin comment
This is all part of multiline comment.
You can use as many lines as you like
These comments will be ignored by the 
compiler until the next =cut is encountered.
=cut

Example from python:

# This is a comment

Example from ruby:

# This is a single line comment.

Example from turbo-pascal:

{ within pairs of braces }
(* left parenthesis/asterisk and asterisk/right parenthesis pairs *)
// preceded by two forward slashes

Last updated June 22nd, 2019