import ballerina/io;
// You can have Unicode identifiers.
function พิมพ์ชื่อ(string ชื่อ) {
// Use \u{H} to specify character using Unicode code point in hex.
io:println(ชื่\u{E2D});
}
// Prefix reserved keywords with a single quote.
string 'from = "contact@ballerina.io";
// Prefix non-identifier character with a \\.
string first\ name = "Ballerina";
public function main() {
พิมพ์ชื่อ("ආයුබෝවන්");
}
IdentifiersIdentifier syntax is similar to C. Keywords are reserved. |
import ballerina/io;
function พิมพ์ชื่อ(string ชื่อ) {
You can have Unicode identifiers.
io:println(ชื่\u{E2D});
Use \u{H} to specify character using Unicode code point in hex.
}
string 'from = "contact@ballerina.io";
Prefix reserved keywords with a single quote.
string first\ name = "Ballerina";
Prefix non-identifier character with a \.
public function main() {
พิมพ์ชื่อ("ආයුබෝවන්");
}
bal run identifiers.bal
ආයුබෝවන්