Skip to content

Comments

Quetzal Language supports two comment styles.

Start with // and extend to the end of the line.

// Start the program
consola.mostrar("Hola")

Delimited by /* and */. Content can span multiple lines.

/*
User module documentation.
Includes constructors and helper functions.
*/
objeto Usuario { ... }

Nested comments are not supported. Avoid patterns like /* ... /* ... */ ... */ because the interpreter considers them a syntax error.

  • Describe the purpose of complex blocks instead of repeating the code.
  • Keep comments synchronized with the actual program behavior.
  • In objects and modules, document the intent of privado and publico members to facilitate maintenance.
  • Use comments to indicate permission requirements defined in quetzal.json when your module depends on the file system.

Comments are removed during interpretation and do not affect program performance.