Saturday 25 February 2012

Computing in Libretto (5 of 5). Comments

There are two types of comments in Libretto: doc comments and code comments.

Doc Comments

Documentation comments (Librettodoc) have in Libretto a structure similar to those in Java:
/**
  documentation text
*/

Code Comments

There are two types of code comments:

  • block comments, 
  • inline comments. 

Block comments are multiline comments enclosed in /* and */. In Libretto, comments can be nested: a code segment of the form /* … /* … */ … */ is a correct comment.

Inline comments start with // and end with the end of the line.


No comments:

Post a Comment