Summary
Ballerina is a cloud native programming language that provides a cloud native syntax style to enable programmers to easily implement cloud native applications. You can start building a Ballerina application by downloading the Ballerina development kit. In this chapter, we used VS Code as the IDE. We created a simple "hello world" application and discussed using the CLI tool to maintain a Ballerina project.
The Ballerina type system includes types to represent both data and behavior. The data types include simple data types, such as integers, Booleans, floats, and so on. We can build more complex data types by using arrays, maps, records, and tables. The Ballerina type system contains types such as functions, futures, and errors that are essential to building applications.Furthermore, we discussed control flow instructions such as loops and conditions.
Functions give you a way to organize your code and reuse it. The main function is the main entry point to the...