# Ballerina programming language

- Page: https://shared.btbytes.com/p/ballerina
- Date: 2019-09-13
- Tags: jvm, programming-language, ballerina

["Ballerina" Could Become the Programming Language of Integration - By dhanushka](https://hackernoon.com/first-glimpse-of-ballerina-language-language-of-integration-q31x31jv)

Ballerina is a static typed language.

Another special type of variable is that “anydata” data type. This type is a union of the `()|boolean|int|float|decimal|string|(anydata|error)[]|map<anydata|error>|xml|table` data types. anydata variables can be used in places where you expect pure values.


Since Ballerina specifically designed to construct apps operating on networks, it natively supports JSON and XML.

```
json user = {
         fname: "Peter",
         lname: "Stallone",
         "age": age,
         address: {
             line: "20 Palm Grove",
             city: "Colombo 03",
             country: "Sri Lanka"
         }
    };
io:println(user.address.country);
```

```
xml x1 = xml `<book>The Lost World</book>`;
io:println(x1);
```


## News

* [Ballerina Programming Language Revamped, at 1.0 - The New Stack](https://thenewstack.io/ballerina-programming-language-revamped-at-1-0/)

## Articles

James Clark's blog:

* [Part 0: Context](https://blog.jclark.com/2019/09/ballerina-programming-language-part-0.html)
* [Part 1: Concept](https://blog.jclark.com/2019/09/ballerina-programming-language-part-1.html)
* [Why Ballerina is a language](https://blog.jclark.com/2022/05/why-ballerina-is-language.html)
