So far, we have been using simple types to implement our scenarios. In this chapter, we will be looking into the structural and behavioral types that are available in Ballerina. These types will help us in modeling and solving complex problems more efficiently.
There are also a few other special types that can be created, which are critical in Ballerina’s type system. Union types are one of them. Let’s start off by getting to know what they are and how we can use them.