Ballerina Compilation Process

This is not a how-to post; rather it is a post that describes technical concepts behind the implementation of the Ballerina programming language.

When we started developing the language, we were newbies in language development. We had to research everything from scratch. In fact, we took leave for two weeks and studied compiler theory first :)

Defaultable Parameters in Ballerina

Ballerina

Let's dig into this cool Ballerina feature. How many times you were wondering how to invoke a method and what to pass into that function? Of course, you should know what to pass, but there are occasions that you care about only a couple of parameters and the rest of the parameters you just don't know what to do with.

Personally, I faced such situations multiple times. Ballerina provides a cool way to deal with such scenarios. Basically, the function developer can provide the default value for the parameter so that the one who uses the function and invokes it can opt-out from providing a value for that parameter.