Skip to content

Commit

Permalink
Add Dart 3.6 entry to language evolution page (#6269)
Browse files Browse the repository at this point in the history
Also added an id to the section that talks about digit separators in the
language tour, so we have something to point to.

fixes #6267

---------

Co-authored-by: Parker Lougheed <[email protected]>
  • Loading branch information
MaryaBelanger and parlough authored Dec 11, 2024
1 parent adf6e71 commit c782067
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/content/language/built-in-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,8 @@ const msUntilRetry = secondsUntilRetry * msPerSecond;

For more information, see [Numbers in Dart][dart-numbers].

<a id="digit-separators"></a>

You can use one or more underscores (`_`) as digit separators
to make long number literals more readable.
Multiple digit separators allow for higher level grouping.
Expand Down
13 changes: 13 additions & 0 deletions src/content/resources/language/evolution.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,19 @@ on the Dart language GitHub repo.
## Changes in each release
### Dart 3.6
_Released 11 December 2024_
| [Dart 3.6 announcement](https://medium.com/dartlang/announcing-dart-3-6-778dd7a80983)
Dart 3.6 added support for [digit separator][] underscores (`_`) to the language.
Digit separators improve readability of long number literals.

```dart
var m = 1__000_000__000_000__000_000;
```

[digit separator]: /language/built-in-types#digit-separators

### Dart 3.5
_Released 6 August 2024_
| [Dart 3.5 announcement](https://medium.com/dartlang/dart-3-5-6ca36259fa2f)
Expand Down

0 comments on commit c782067

Please sign in to comment.