Ballerina Apr 2026

int res1 = wait f1; string res2 = wait f2;

bal run hello.bal Variables & Types int age = 30; string name = "Alice"; boolean active = true; float pi = 3.14; decimal precise = 10.0d; byte[] data = [1, 2, 3]; json j = "name": "Bob" ; xml x = `<person>John</person>`; Optional Types & Error Handling Ballerina uses optional types ( T? ) and error union types ( T|error ). ballerina

Run:

Ballerina has powerful query expressions and type casts . int res1 = wait f1; string res2 = wait f2; bal run hello

curl -fsSL https://dist.ballerina.io/downloads/install.sh | bash Use the MSI installer. int res1 = wait f1