Comments
Quetzal Language supports two comment styles.
Single-Line Comments
Section titled “Single-Line Comments”Start with // and extend to the end of the line.
// Start the programconsola.mostrar("Hola")Multi-Line Comments
Section titled “Multi-Line Comments”Delimited by /* and */. Content can span multiple lines.
/* User module documentation. Includes constructors and helper functions.*/objeto Usuario { ... }Nested Comments
Section titled “Nested Comments”Nested comments are not supported. Avoid patterns like /* ... /* ... */ ... */ because the interpreter considers them a syntax error.
Best Practices
Section titled “Best Practices”- 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
privadoandpublicomembers to facilitate maintenance. - Use comments to indicate permission requirements defined in
quetzal.jsonwhen your module depends on the file system.
Comments are removed during interpretation and do not affect program performance.