Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language evolution 3.6 #6269

Merged
merged 4 commits into from
Dec 11, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 the [digit separator][] underscore (`_`) to the language.
MaryaBelanger marked this conversation as resolved.
Show resolved Hide resolved
Digit separators improve readability of long number literals.
MaryaBelanger marked this conversation as resolved.
Show resolved Hide resolved

```dart
var m = 100__000_000__000_000__000_000
MaryaBelanger marked this conversation as resolved.
Show resolved Hide resolved
```

[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
Loading