Language best practices
List of common Ballerina language best practices to follow.
Optionality and nil values
Values and types
Functions and parameters
- Using included record parameters
- Use expression-bodied functions
- Use tuples to return multiple values
Error handling
Records
Objects
Working with constants and strings
- Using constants
- Handle unions of string constants
- Handle unions of integer constants
- Generate string by concatenating values