Comments

Euphoria has a provision for making comments inside the programs you write.

There are two ways to create comments in Euphoria programs.

  1. Two dashes "--" begin a comment on any one line
  2. /* and */ are used to end and begin a block comment

The comment marks, as well as everything after them, are ignored by the Euphoria interpreter. Comments are very useful for reminding yourself or informing others of the intent of your section of code. Comment liberally.

See the examples below.

atom a, b -- declare variables

-- assign variables
a = 5
b = 3

-- print
?a+b -- the sum

-- print(1,a+b) -- this whole line will be ignored

for t=1 to 10 do
   ?t
end for

/*
Starting with the beginning of the above line,

all of this text will be ignored by the interpreter.

It will be ignored until the asterisk+slash is encountered.

This is useful for embedding long commentary about the code in your program.

It is also useful for embedding documentation for the end user.
*/