Comments
Use # for a line, ## for a block, and ### for documentation.
Example.kalm
### Return a friendly greeting.
pub fun greeting() -> Text:
## This comment
spans two lines. ##
# A line comment.
return "Hello"
Example.kalm
### Return a friendly greeting.
pub fun greeting() -> Text {
## This comment
spans two lines. ##
# A line comment.
return "Hello"
}
Example.kalms
### Return a friendly greeting.
fun greeting() -> Text:
## This comment
spans two lines. ##
# A line comment.
return "Hello"
Example.kalms
### Return a friendly greeting.
fun greeting() -> Text {
## This comment
spans two lines. ##
# A line comment.
return "Hello"
}
Example.java
public final class Example {
/** Return a friendly greeting. */
public static String greeting() {
/* This comment
spans two lines. */
// A line comment.
return "Hello";
}
}