To use this website fully, you first need to accept the use of cookies. By agreeing to the use of cookies you consent to the use of functional cookies. For more information read this page.

Part 2.3Comments in YASS

Commenting is a major part of making code easier to understand. ZPE/YASS features two types of comments that help make code easier to read back.

What comments are

A comment is a piece of text that is used to describe or document a piece of code. Almost every language out there features at least one type of commenting style. Most languages feature multiple commenting styles and in YASS these commenting styles are multi-line and single line. 

A single line comment can be anywhere on a line but anything on the line following will be part of the comment. A multi-line comment is one which spans multiple lines and is terminated with a multi-line comment termination sequence.

The following sample demonstrates these comment types:

YASS
//Single line comment
print("Hello world") //Comment at end of line
/*This is a multi-line comment
This is still part of the multi-line comment
*/
Code previewClose
Feedback 👍
Comments are sent via email to me.