Comments
We've implemented comments in GoMelan like in C, here is some examples of GoMelan comments:
fn power(x: Int, y: Int) -> Int;
/* Here is a comment
i can also write it
on several lines */
// This is a one line comments
fn main() -> Int
{
total: Float = 3.4; // Init total to 3.4
a: [Int] = [1, 3, -4, 2, 0, 6, -6];
return power(floatToInt(total) + sum(a), 3); // Return the result of the power calculation
}
Last updated
Was this helpful?