Skip to content

Commit

Permalink
Merge pull request ballerina-platform#654 from warunalakshitha/beta2
Browse files Browse the repository at this point in the history
Address runtime release note suggestions
  • Loading branch information
praneesha committed Jun 25, 2021
2 parents 81538a2 + 578ccc8 commit 22667ac
Showing 1 changed file with 18 additions and 21 deletions.
39 changes: 18 additions & 21 deletions release-notes/swan-lake-beta2-release-note.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,27 +47,6 @@ public function main() {
}
```

The `Configurable` feature is improved to support variables with the `union` types through the TOML syntax.

Here are some examples with `union` types.

```ballerina
configurable map<anydata> myMap = ?;
configurable int|string id = ?;
```

**TOML:**

```toml
id = "12345"

[myMap]
name="John"
age=10
```

- The static type of string iteration has been changed from `string` to `string:Char`.

```ballerina
Expand Down Expand Up @@ -96,6 +75,24 @@ To view bug fixes, see the [GitHub milestone for Swan Lake Beta2](https://github

#### Improvements

- Support has been introduced for `configurable` variables of union types via the TOML syntax.

```ballerina
configurable map<anydata> myMap = ?;
configurable int|string id = ?;
```

**TOML:**

```toml
id = "12345"

[myMap]
name = "John"
age = 10
```

#### Bug Fixes

To view bug fixes, see the [GitHub milestone for Swan Lake Beta2](https://github.com/ballerina-platform/ballerina-lang/issues?q=is%3Aissue+is%3Aclosed+milestone%3A%22Ballerina+Swan+Lake+-+Beta2%22+label%3AType%2FBug+label%3ATeam%2FjBallerina).
Expand Down

0 comments on commit 22667ac

Please sign in to comment.