Coding in meaningful way(Identifier literal support in ballerina ).

Rajith Vitharana
May 15, 2017 · 2 min read
int this is variable = 5;
int |this is a variable| = 5;
function |this is a sample function| (){}
function main(string[] args) {
system:println(|this is a variable|);
|this is a sample function|();
}
import ballerina.lang.system;

function main (string[] args) {
system:println(|සිංහල වාක්‍යක් දෙන්න|());
}

function |සිංහල වාක්‍යක් දෙන්න|() (string) {
string |සිංහල වාක්‍යක්| = "සිංහල වාක්‍යක්";
return |සිංහල වාක්‍යක්|;
}
import ballerina.lang.system;

function main (string[] args) {

system:println(|Λάβετε το όνομα|());
}

function |Λάβετε το όνομα|() (string) {
return "sample";
}
import ballerina.lang.system;

function main (string[] args) {

system:println(Λάβετετοόνομα());
}

function Λάβετετοόνομα() (string) {
return "sample";
}

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade