ballerina-lang
ballerina-lang copied to clipboard
The Ballerina Programming Language
## Purpose > Describe the problems, issues, or needs driving this feature/fix and include links to related issues. Fixes # ## Approach > Describe how you are implementing the solutions...
### Description We can create a ballerina library package using the following command: ``` $ bal new -t lib socialMedia ``` This creates the `module.md` and `package.md` with the content...
## Purpose $subject Fixes https://github.com/ballerina-platform/ballerina-dev-tools/issues/359 ## Approach > Describe how you are implementing the solutions along with the design details. ## Samples > Provide high-level details about the samples related...
## Purpose It is recommended to use the static methods of `JsonParser`. See: https://github.com/google/gson/blob/99cc4cb11f73a6d672aa6381013d651b7921e00f/gson/src/main/java/com/google/gson/JsonParser.java#L74-L78 ## Approach > Describe how you are implementing the solutions along with the design details. ##...
## Purpose A non-static inner class has a reference to its outer class, and access to the outer class' fields and methods. That class reference makes the inner class larger...
### Description Consider the following XML: ``` http://htng.org/PWSWG/2010/12/DescriptiveContent_SubmitResponse 2024-07-04T15:37:45.3605563Z 999999001 5d7c1d79-a8dc-4185-a49e-834375ae3c3e ``` Following is the generated record types: ```ballerina type A_Action record { string \#content; @xmldata:Attribute string mustUnderstand; }; @xmldata:Namespace...
## Purpose > Fields that are not reassigned should be marked as final to make the intent clear. It also helps to later convert some classes to records and encapsulate...
## Purpose $subject. Fixes #42811 Fixes #43030 ## Approach n/a ## Samples n/a ## Remarks n/a ## Check List - [x] Read the [Contributing Guide](https://github.com/ballerina-platform/ballerina-lang/blob/master/CONTRIBUTING.md) - [ ] Updated Change...
### Description Source: ```ballerina 1 ``` Generated: ```ballerina type A record { int \#content; @xmldata:Attribute string age; @xmldata:Attribute string name; }; @xmldata:Namespace {uri: "example.com"} type Data record { @xmldata:Namespace {uri:...
## Purpose $subject Fixes #42988 ## Approach > Describe how you are implementing the solutions along with the design details. ## Samples > Provide high-level details about the samples related...