Comments
In Solstice, there are 3 ways to do comments:
// (Single-Line Comment)
Writing // tells Solstice to ignore the rest of the line.
Some examples:
puts 2 + 2 // should be 4
// This variable holds the status code from checkStatus()
statusCode = checkStatus("file.txt")
This comment should be used when writing your code’s logic in Solstice.
/* */ (Multiline Comment)
Any text in between /* and */ will be ignored. These comments should be used to document functions and structs (we’ll get to those later.)
Example:
/*
Adds two numbers together.
*/
def add(int a, int b) int {
return a + b
}
# (Shebang Comment)
Use this comment only for using Solstice as a script interpreter in a shebang. Effectively the same as //, but we recommend using // over #.